What is the difference between var, let, and const?
var is block-scoped, let and const are function-scoped.
var is function-scoped, let and const are block-scoped.
var and let are block-scoped, const is function-scoped.
All are block-scoped.
This question is part of this quiz :
Variables and Data Types