DEV Community

Discussion on: ES6 Basics: The Difference Between Var, Let, and Const

Collapse
 
abtahitajwar profile image
abtahi-tajwar

That was helpful. Var is really confusing compared to let and const.
let and const behaves exactly like C/C++ variables.

Collapse
 
travissanon profile image
Travis Sanon • Edited

Yep! If you wanna take it even further, you can use TypeScript and add types to make your variables more clear and concise 😃