Would you like to clone this notebook?

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

Cancel

global var concept

node v10.17.0
version: master
endpointsharetweet
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}.`);
Loading…

no comments

    sign in to comment