DEV Community

loading...

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

Collapse
matjones profile image
Mat Jones

I've been doing software professionally for several years now and I honestly cannot think of a single real-world case where I've ever had to use var or any case where var could possibly have been better in any way. Basically vars only use is for const and let to be compiled to it for Internet Explorer support 😂

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 :)

Collapse
matjones profile image
Mat Jones

Definitely agree. Just pointing it out.