Answers for "Jquery SEND TO START OF ARRAY"

1

Jquery SEND TO START OF ARRAY

var colors = ['red','blue','green'];

/*// PUSH TO FRONT OF ARRAY
---------------------------*/
colors.unshift('yellow');
// colors = ['yellow, 'red', 'blue', 'green']
Posted by: Guest on February-03-2021
1

Jquery SEND TO START OF ARRAY

var colors = ['red','blue','green'];

/*// PUSH TO FRONT OF ARRAY
---------------------------*/
colors.unshift('yellow');
// colors = ['yellow, 'red', 'blue', 'green']
Posted by: Guest on February-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language