Answers for "Jquery SEND TO END OF ARRAY"

1

Jquery SEND TO END OF ARRAY

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

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language