how to make a while cycle come to an end when the correct number is put. Code explain please :c | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

how to make a while cycle come to an end when the correct number is put. Code explain please :c

This is wrong. var resultado; while( resultado !== 20 ){ resultado = prompt(" 18 + 2 = ? " ) }

7th Aug 2018, 4:31 AM
Jorge David Vasquez lazo
Jorge David Vasquez lazo - avatar
1 Antwort
0
var resultado; while( resultado !== "20" ){ resultado = prompt(" 18 + 2 = ? " ) }
7th Aug 2018, 5:52 AM
Calviղ
Calviղ - avatar