Q. How can you prevent a variable from being reassigned?

  • (A) Use var
  • (B) Use let
  • (C) Use const
  • (D) Use strict
πŸ’¬ Discuss
βœ… Correct Answer: (C) Use const
Explanation: const ensures the variable cannot be reassigned.
Explanation by: Chandani
const ensures the variable cannot be reassigned.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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