πŸ“Š JavaScript
Q. What is the main difference between var and let keywords in JavaScript?
  • (A) var defines a variable while let defines a constant
  • (B) var defined function scoped variable while let define block scoped variable
  • (C) The value of a variable declared with var can be changed while the value of a variable declared with let cannot be changed
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) var defined function scoped variable while let define block scoped variable

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
257
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
80%
Success Rate