Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.


global and function scoped

node v10.24.1
version: master
// Initialize a global variable var digimon = "Agumon"; function evolution() { // Initialize a local, function-scoped variable var digimon = "Greymon"; console.log(digimon); } // Show the result console.log(digimon); evolution(); console.log(digimon);

no comments

    sign in to comment