var (JavaScript)
var is the original keyword for declaring variables in JavaScript. It is function-scoped and hoisted, which is why modern code prefers let and const instead.
var is the original keyword for declaring variables in JavaScript. It is function-scoped and hoisted, which is why modern code prefers let and const instead.