Javascript var vs let vs const

3 years ago
92

Var, Let, and Const in JavaScript. These are the three keywords used to create javascript variables. All variable starts with any of these keywords. In this video, we will discuss - Scope difference between var and let( const). - Hoistability of variables. - Which one allows redeclaring the same variable. - Best practices on using these keywords let, var and const.

You have probably watched many different tutorials, and you may have noticed that some tutorials use var to declare variables while others use let or even const. It can get confusing quickly on what the differences are between the keywords, so in this video I am going to be explaining everything you need to know about var, let, and const. I will be going over their differences as well as explaining what situations you should use each keyword. If you have any suggestions for a JavaScript topic, please let me know in the comments below.

Let vs Const vs Var Article:
https://blog.legomake.com/es6-var-vs-const-vs-let/

Loading comments...