BFE.dev
buy us
a coffee
Codingproblems
Reactproblems
JavaScriptquizzes
Reactquizzes
TypeScriptpuzzles
CSSproblems
Interviewquestions
SystemDesign
Discussanything
buy us
a coffee

5.`var` vs `let` vs `const`

JavaScript
Share

The biggest difference is about the variable scope, so you should understand it first.

Before you start explaining the difference, it is recommended to talk about your general rule on which to use in common cases.

Then you can start talking about the technical difference between var, let and const

prevnext

relax!