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

  • (A) let
  • (B) var
  • (C) global
  • (D) define
πŸ’¬ Discuss
βœ… Correct Answer: (A) let
Explanation: let declares variables limited to the block where they are defined.
Explanation by: Mr. Dubey
let declares variables limited to the block where they are defined.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate