Posts by danilodev • 3 points
1 post
-
-2
votes1
answer31
viewsQ: Stop Loop For when a certain number is typed
I’m trying to stop a loop for when the number 42 is typed. Even my code is like this: var numero = prompt('Digite o numero') var arrNumero = [] arrNumero.push(numero) console.log(arrNumero) for (let…