Question 4
Which of the following statements is true about the let, const, and var keywords in JavaScript?
var is block-scoped, while let and const are function-scoped.
const variables must always be initialized at the time of declaration.
Variables declared with let and const are hoisted and initialized with undefined.
let, const, and var have identical scoping rules.