Skip to content

Instantly share code, notes, and snippets.

@fritsvt
Created October 7, 2018 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fritsvt/309acc547fe271cf6254168e341c38e1 to your computer and use it in GitHub Desktop.
Save fritsvt/309acc547fe271cf6254168e341c38e1 to your computer and use it in GitHub Desktop.
// 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