DEV Community

Christian Otieno
Christian Otieno

Posted on

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.

Discussion (2)

Collapse
alemagio profile image
Alessandro Magionami

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

Collapse
christianotieno profile image
Christian Otieno Author

absolutely.