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 block-scoped

node v10.24.1
version: master
var trigger = true; // Initialize a global variable let digimon = "Agumon"; if (trigger) { // Initialize a block-scoped variable let digimon = "Greymon"; console.log(`Evolution triggered, you are become ${digimon}.`); } console.log(`Evolution failed, you are still ${digimon}.`);

no comments

    sign in to comment