Q. Which keyword declares a block-scoped variable?

  • (A) let
  • (B) var
  • (C) const
  • (D) Both let and const
πŸ’¬ Discuss
βœ… Correct Answer: (D) Both let and const
Explanation: Both let and const are block-scoped.
Explanation by: Mr. Dubey
Both let and const are block-scoped.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate