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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
0
var resultado; while( resultado !== "20" ){ resultado = prompt(" 18 + 2 = ? " ) }
7th Aug 2018, 5:52 AM
CalviÕ²
CalviÕ² - avatar