A

Admin • 833K Points
Coach

Q. Which keyword declares a block-scoped variable?

  • (A) let
  • (B) var
  • (C) const
  • (D) Both let and const
  • Correct Answer - Option(D)
  • Views: 17
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

Both let and const are block-scoped.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.