15. Let vs Var vs Constant|Difference Between Var, Let, and Const| JavaScript tutorial for beginners

Опубликовано: 04 Октябрь 2024
на канале: Teach YourSelf Code
192
8

Let vs Var vs Constant|Difference Between Var, Let, and Const| JavaScript tutorial for beginners

#JavaScript #Tutorial #beginners #JavaScripttutorialforbeginners #LearnJavaScript
#JavaScriptCrashCourse #JavaScriptFullTutorial #let #const #var
#differenceBetweenletconstvar #difference #between

Hi All,

In this video, we will cover the difference between let, const and var variable declaration. We will also cover some good example of the implementation and see how they are different.
Some details on let, const and var:
1) All of them are ways of declaring variable in JavaScript.
2) ‘let’ and ‘const’ was introduced in ES6.
3) ‘let’ is block scoped.
4) ‘var’ was introduced before ES6 release.
5) ‘var’ is function scoped.
6) When we want to reassign some value to a variable ‘let’ is used.
7) When we declare a variable ‘const’, its value cannot be changed.
8)We have to be very careful before declaring any variable as ‘const’, as changing any variable declaring is not recommended and cause a lot of issue.

Playlists:
JavaScript Tutorial:
   • Stay tune for JavaScript Tutorial !!!!!  

Git tutorial:
   • 7. How to initialize git repository |...  

3rd party application installation:
   • How to install postman in MAC  

Spring boot beginners tutorial:
   • 1. What is spring boot and how to wri...  

Selenium Ruby Tutorial:
   • 1. How to install firebug and firepat...  

Ruby Tutorial:
   • Ruby tutorial: Chapter 1 Top 5 reason...  

Git Official website:
https://git-scm.com/

Git download:
https://git-scm.com/downloads

Git Documentation:
https://git-scm.com/doc
About this channel:
This is channel is dedicated for all those who want to learn new technologies by self learning. We keep on adding new content in this channel on a day to day basis and try to share our knowledge. Please feel free to drop your question to the email id mentioned below or comment on the video if you feel so.

facebook page:
  / teach-yourself-code-102086558276245  
LinkedIn:
  / gagan-arora-pm  
Email Id:
[email protected]

Disclaimer:
Videos are for educational purpose only, please use them wisely.
Video may or may not contain slight mistakes, if you feel something is not correct please do some research.
Through this video we are not forcing anything on anyone.