Hello,
I would like add numbers 5 through 0 to myArray with a for loop.
I expect this result: [5,4,3,2,1,0]
function myFun() {
var myArray = [];
for (var i = 5; i >= 0; i--) {
myArray.push[i];
}
console.log(myArray);
}
What’s wrong ?