Q. What is hoisting in JavaScript?

  • (A) Declaring variables at the top
  • (B) Using let and const only
  • (C) JavaScript's default behavior of moving declarations to the top
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) JavaScript's default behavior of moving declarations to the top
Explanation: Hoisting means variable/function declarations are moved to the top.
Explanation by: Chandani
Hoisting means variable/function declarations are moved to the top.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
81
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
91%
Success Rate