A

Admin • 833K Points
Coach

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

  • (A) Use var
  • (B) Use let
  • (C) Use const
  • (D) Use strict
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

const ensures the variable cannot be reassigned.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.