Jquery SEND TO END OF ARRAY code example
Example: Jquery SEND TO END OF ARRAY
var colors = ['red','blue','green'];
/*// PUSH TO FRONT OF ARRAY
---------------------------*/
colors.push('yellow');
// colors = ['red', 'blue', 'green', 'yellow']
var colors = ['red','blue','green'];
/*// PUSH TO FRONT OF ARRAY
---------------------------*/
colors.push('yellow');
// colors = ['red', 'blue', 'green', 'yellow']