0

If I have an array:

a = new Array(1,3,6,8,10,12);
b = 7;

Using Javascript/JQuery how can I insert the value 7 (or another number) into the array so it appears sequentially in the array.

The array would then be:

b = new Array(1,3,6,7,8,10,12);

Thanks

S.S
  • 5
  • 4

0 Answers0