Why this JavaScript code only printing (iiiiii) ?? Why not print even number between 0-10?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why this JavaScript code only printing (iiiiii) ?? Why not print even number between 0-10??

var i=0; while (i<=10) { document.write("i"); i+=2; }

23rd Aug 2022, 2:02 PM
Golu
Golu - avatar
1 Réponse
0
Thank you so much....for explaining me🤗
23rd Aug 2022, 4:24 PM
Golu
Golu - avatar