Q. Which of the following is true about 'const'?

  • (A) Cannot be reassigned
  • (B) Cannot be mutated
  • (C) Not block-scoped
  • (D) Hoisted to top with undefined
πŸ’¬ Discuss
βœ… Correct Answer: (A) Cannot be reassigned
Explanation: const variables cannot be reassigned but can be mutated (for objects).
Explanation by: Chandani
const variables cannot be reassigned but can be mutated (for objects).

πŸ’¬ Discussion


πŸ“Š Question Analytics

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