Different way | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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