Created
June 24, 2020 22:42
-
-
Save sidneisimeao/78e6a2b24c2bf3bf29ede91e35b701b8 to your computer and use it in GitHub Desktop.
Teste.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let age = prompt("How old are you?"); | |
let cnh = prompt("Do you have CNH yes/no?"); | |
let message = (age < 18 || cnh =='no') | |
? "You can't drive. Mandatory to be over 18 and have a CNH" | |
: "You can drive" | |
console.log(message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment