Posts by Guilherme • 21 points
1 post
-
2
votes2
answers484
viewsQ: How to use multiple answers for the same variable in just one if?
It is possible to use only one if for several possible values of the same variable? For example: Instead of writing: var nome="" var nome=prompt("Digite seu nome"); if (nome === null){ alert(Você…