Question Bank
JavaScript Array Pair Extraction: Two Approaches Quiz
Difficulty: Hard
Split an array into consecutive pairs (with a trailing single when the length is odd), two ways (reduce with odd-index push and a stepped slice loop), plus companions on a generic chunk size and a lazy generator variant.
