A

Admin • 833K Points
Coach

Q. What is the meaning of JavaScript Hoisting?

  • (A) Moving declarations to bottom
  • (B) Moving declarations to top
  • (C) Hosting variables by itself
  • (D) None of the mentioned
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

Hoisting is JavaScript’s default behavior of moving declarations to the top. In JavaScript, a variable can be declared after it has been used) In other words; a variable can be used before it has been declared.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.