DEV Community

Christian Otieno
Christian Otieno

Posted on

2 1

Hoisting

One of the advantages of JavaScript putting function declarations into memory before it executes any code segment is that it allows you to use a function before you declare it in your code.

Top comments (2)

Collapse
 
alemagio profile image
Alessandro Magionami

And is a disadvantage too when you consider variables...

Collapse
 
christianotieno profile image
Christian Otieno

absolutely.

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay