Re-Factor your code with functions, to have a reusable code
- arrow functions
const myFunction = (optionalParams) => {
let newValue = 10;
console.log("I'm executed when someone calls the function");
optionalParams = newValue;
return optionalParams
}To start the exercises
- go in your code folder
cd ~/code - go inside your github username folder with
cd your_github_username git clone paste_here_ssh_link_to_your_assignment- go inside the repo you've just cloned
cd js-functions-your-github-username(ifyou presscd+tabit will be easier) - go inside the exercise folder
cd 01-can_you_vote - open VS_CODE
code .
- print values and messages to understand what the code is doing
cosole.log()- run the programm
node path_to_file_name.jsEvery time you complete an exercise remember to
git add .
git commit -m "exercise # done"
git push origin masterGood Hacking 🚀