Please enable JavaScript.
Coggle requires JavaScript to display documents.
Javascript - Coggle Diagram
Javascript
sdw
Hoisting
How can we prevent Hoisting?
using
'use strict
' directive, so that JS will not allow undeclared variables
Hoisting does not occur with
let
or
const
modern alternatives in ES6 - const and let.
Benefits
What is it?
Initializations
are not hoisted!
Declaration
are hoisted!
Best Practices
Links
use google dev tools:
https://developer.chrome.com/docs/devtools/#javascript
Shortest JS program?
window
It is gloabal object created bby JS engine
Engine
Translates js codes into machine efficient code
complies JS code into machine code at the execution