var array = []; for (i = 10; i <= 10; i--) { array.push(i); } console.log(array) code example
Example 1: array ub js
var fruits = ['Apple', 'Banana'];
Example 2: javascript access pushed element
let newLength = myList.push(myElm);
myList[newLength - 1] // This then equals myElm