Top 10 Interview
Questions
You need today
[Link]
What is the difference
between var, let, and const?
var is function-scoped and hoisted
let and const are block-scoped.
const variables can’t be reassigned.
What is hoisting in JavaScript?
JavaScript moves declarations to the
top of their scope.
Functions and var declarations are
hoisted.
let and const are hoisted but not
initialized.