What is the difference between function declarations and function expressions regarding hoisting?
- A Declarations are fully hoisted and callable before definition; expressions are not
- B Expressions are hoisted, declarations are not
- C Neither is hoisted
- D Both behave identically
Answer
Declarations are fully hoisted and callable before definition; expressions are not
A function declaration is hoisted with its body. A function expression assigned to a variable follows that variable's hoisting rules.





