-
-
Save Spirecool/1db2a6d05c33809d404eec58eaf2bac9 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
function calculateAge(yearOfBirth) { // pour calculer l'age il faut une année de naissance | |
let age = 2020 - yearOfBirth | |
console.log(age) //on aurait pu mettre le ocnsole.log après la déclaration de la constante ageBob | |
return age | |
} | |
const ageBob = calculateAge(1985); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment