What is the difference between let, const, and var in JavaScript?
- let and var have block scope, while const has function scope.
- let, const, and var have the same scope.
- var and const have block scope, while let has function scope.
- let and const have block scope, while var has function scope.