What is hoisting is JavaScript ?
JavaScript moves declarations to the top of their scope. This means that variables and functions in JavaScript can be used before they are declared.
The key things to know about hoisting are:
Only declarations are hoisted, not initializations. This ...
tenzinwoz.hashnode.dev1 min read