Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the difference between function declarations and function expressions regarding hoisting?

  1. A Declarations are fully hoisted and callable before definition; expressions are not
  2. B Expressions are hoisted, declarations are not
  3. C Neither is hoisted
  4. 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.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as