Jquery SEND TO END OF ARRAY
snippet in javascript

Jquery SEND TO END OF ARRAY

user7320

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

/*// PUSH TO FRONT OF ARRAY
---------------------------*/
colors.push('yellow');
// colors = ['red', 'blue', 'green', 'yellow']