EasyRememberJavaScript FundamentalsMultiple Choice
Which statement about let and var is TRUE?
Remember — Tests recall of fundamental facts and definitions.
Answer Options
Alet is function-scoped, var is block-scoped
Bvar is block-scoped, let is function-scoped
Clet is block-scoped, var is function-scoped
DBoth are block-scoped
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 34+ more JavaScript Fundamentals questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the JavaScript Fundamentals topic (Programming Languages).