Created
October 7, 2018 09:38
-
-
Save fritsvt/309acc547fe271cf6254168e341c38e1 to your computer and use it in GitHub Desktop.
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
// NIKS 18 leeftijd controle. | |
document.title = 'NIKS 18!'; | |
const age = prompt('Wat is uw leeftijd?'); | |
if (age < 18) { | |
// De gebruiker is jonger dan 18 | |
alert('NIKS 18!'); | |
} else { | |
// De gebruiker is 18 of ouder | |
alert('SAUFEN!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment