+ 1

Different way

Can’t you write it this way also? Var x=12; While (x=12; x<100; x++) Cosole.log(”Java rocks!”);

4th Jun 2019, 10:23 PM
Gor Asatryan
Gor Asatryan - avatar
2 odpowiedzi
+ 2
am not sure while loop can be use like that in js, but not other languages, that kind of parameters can only be use in for loop
4th Jun 2019, 11:11 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
Yess I've tried in Js this .
5th Jun 2019, 5:41 AM
Yashvi Shah
Yashvi Shah - avatar