Would you like to clone this notebook?

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


global var concept

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

no comments

    sign in to comment