DEV Community

Cover image for Differences between Let Var Const that you didn't know - ES6 [Video + Article]

Differences between Let Var Const that you didn't know - ES6 [Video + Article]

Tharun Shiv on May 27, 2020

In this post we will discuss the differences between the let, var and const along with code examples and their outputs Video: Consider sub...
Collapse
 
elmuerte profile image
Michiel Hendriks •

Unlike other languages const in JavaScript does not make the reference immutable. So, it's not really constant, merely final in its assignment.

Collapse
 
developertharun profile image
Tharun Shiv •

Thank you for contributing 🙂

Collapse
 
venkat121998 profile image
venkat anirudh •

Ah I see, didn't know that. Thanks 👍

Collapse
 
riotfallen profile image
Dimas Maulana Dwi Saputra •

Thanks for explaining!

Collapse
 
developertharun profile image
Tharun Shiv •

Yes.. 🙂

Collapse
 
harshpyati0798 profile image
Harsh Pyati •

The examples helped a lot in grasping the differences. Thanks for the article.

Collapse
 
developertharun profile image
Tharun Shiv •

Thanks! 🙂

Collapse
 
developertharun profile image
Tharun Shiv •

Yeah, true that. Thanks for contributing 🙂

Collapse
 
developertharun profile image
Tharun Shiv •

Let me know if you liked the article and how I can improve in writing blogs. 😊 Thank you for reading. 🦄

Collapse
 
venkat121998 profile image
venkat anirudh •

The summary helps... good one.. keep it up!

Collapse
 
developertharun profile image
Tharun Shiv •

Thank you

Collapse
 
chandrika56 profile image
Jaya chandrika reddy •

Keep going!

Collapse
 
developertharun profile image
Tharun Shiv •

Definitely! Thank you😊

Collapse
 
praveenreddy1798 profile image
praveenreddy1798 •

Good article.. 👍

Collapse
 
venkat121998 profile image
venkat anirudh •

Yep