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!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
0
var resultado; while( resultado !== "20" ){ resultado = prompt(" 18 + 2 = ? " ) }
7th Aug 2018, 5:52 AM
Calviղ
Calviղ - avatar