The answer
Yes. Function declarations are hoisted with their entire body. You can call a function before its declaration line in the source code.
Yes. Function declarations are hoisted with their entire body. You can call a function before its declaration line in the source code.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.