What is JavaScript Hoisting?

added by JavaScript Kicks
6/21/2019 7:49:29 AM

1048 Views

Hoisting is JS's default behavior of defining all the declarations at the top of the scope before code execution. One of the benefits of hoisting is that it enables us to call functions before they appear in the code. JavaScript only hoists declarations, not initializations. You can find the official documentation here.


0 comments