repl.it
@RDComeau/

Tutorial

Nodejs

Tutorial from Code Platoon

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
function isOldEnoughToDrink(age) {
  if(age < 21){
    console.log("You'r not old enough to drink!")
  } else if (age >= 21){
    console.log("Go Have fun!")
  }
}

isOldEnoughToDrink(25)