DEV Community

loading...

Discussion on: Enough JavaScript to get you Started : #16 var vs let vs const

Collapse
aidap1 profile image
Aidan

Is there any reason to use var?
Everything I've been taught (only in the last ~1 month, I'm new) has focused on let and const

Collapse
matjones profile image
Mat Jones

just saw your comment after posting mine

Collapse
whoadarshpandya profile image
Adarsh Pandya Author

I totally agree, I don't use var , but this is for beginners so it's beneficial to compare :)

Thread Thread
matjones profile image
Mat Jones

Definitely agree. Just pointing it out.