ES5 Variables | Table O Contents

The need to contain the scope of the variable(s) declared in ES6 is a top priority …

Note. The Flammarion Logo Badge in the page header above is an .svg image file set to the dimensions of 5% width, auto height, and zoom. Go ahead and test the zoom-out feature by hovering over the badge to engage the expansion of the image.

ES5 Var

Hint. Place the intro paragraph ie.) the ‘synopsis’ here …

In the past ES5 specification, even if a variable was assigned inside of a code block, for example:


function hoist(x){
  var inside = x + 1;
}

That variable inside could still be hoisted and declared outside of the code block by the Javascript engine.

Indeed, even outside of the function!

And, therefore the variable would became exposed and at the same time yet available globally.

Some may think this is a good thing.

However, by extension the now hoisted variable also became subject to global corruption, as well.

Hence, the need to contain the scope of the variables declared in ES6.

ES6 Let

More to come …

Place the introducing line of text ie.) the ‘tagline’ here …

Import Code

More to come …

Place the introducing line of text ie.) the ‘tagline’ here …

Last Subtitle

More to come …


Note. The above synopsis was derived from an article written by Blank Author [1].

  1. A Narrative of Psychology by Blank Author, Jan #1999

Support

Please support the co-workers who aggregate the Source Links for our projects.

Patreon

Like what you see in this project? If so, then support the authors and machine-elves who aggregate the source links and pages for our projects via Patreon.