خرید بک لینک

Vote count: 0

I've been trying to lea Javascript for the longest time, and it is kind of frustrating. I'm back to leaing the basics again, and I was playing around with these for loops and Arrays below.

Can someone please explain why the output of this "for loop" is the array of [1,2,3,4,5] and not [6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25] ?

 var game1 = new Array();

for(i = 25;i>"love is like a river".length;i=i-1){

  console.log(game1.push(i));

}

asked 58 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 16 تير 1395 ساعت: 12:17

صفحه بندی