DEV Community

Var vs Let vs Const

Nicolas Mesa on August 18, 2018

Cross-posted from my personal blog https://blog.nicolasmesa.co. Hi there! In this post, we’re going to talk about javascript. We’ll start by lo...
Collapse
 
learosema profile image
Lea Rosema (she/her)

Great article!

One nice(or odd?) fact about older browser support: you can use let and const in IE11 without transpiling, even though it does not support most of the ES6+ features.

But I think, you may want to use a transpiler anyway for full ES2018 support.

Collapse
 
nicolasmesa profile image
Nicolas Mesa

I didn't know that! Thanks for the insight.

I agree that using a transpiler is still the way to go to ensure browser compatibility :)

Collapse
 
kipertech profile image
kipertech

Great article! Simple but yet provides clear understanding about these declararions which have been confusing me for a long time.

Thank you so much and looking forward to more like this in the future!

Collapse
 
nicolasmesa profile image
Nicolas Mesa

Thanks for reading! I'm glad you enjoyed it :)

Collapse
 
tangallan profile image
Allan Tang

Great article, this is a nice refresher !

Collapse
 
nicolasmesa profile image
Nicolas Mesa

Thanks for reading Allan! I'm glad you enjoyed it!