Here is an array that I am working with:
var myArray = [12, 24, 36, 48, 60, 15, 30];
I am trying to create a new array of arrays that includes the index numbers from the original array in the new array. The final result should be formatted like this:
var myNewArray = [
[1, 12],
[2, 24],
[3, 36],
[4, 48],
[5, 60],
[6, 15],
[7, 30]
];