A

Admin • 828.03K Points
Coach

Q. Which keyword is used to define a block-scoped variable?

  • (A) let
  • (B) var
  • (C) global
  • (D) define
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
let declares variables limited to the block where they are defined.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.