There is an array with numbers. For example:
let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; How to place them in pairs in a two-dimensional array to get such a two-dimensional array:
let arr2 = [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10], [11, 12]];