Main

let, var, const in JavaScript✌️ #javascript #javascript_tutorial #javascriptforbeginners

In this video, we will understand the difference between Var, Let and Const in JavaScript. Full video: https://youtu.be/WTNGJr4vFw8 #javascript #javascript_tutorial #javascriptvariables #es6 #nandhascript #javascriptinterview

NandhaScript

7 days ago

In this video we are going to learn about the difference between JavaScript let var and constant. OK the first difference the declaration declaration means creating a variable. OK OK in let and var we can create a variable without any value it is possible. But in constant we cannot create a variable without value. OK The second difference is redeclaration. Redeclaration means creating a variable with same name. It is possible in var, but in let and const it is not possible. It will throw an erro
r. The third one modification of value. So we can modify the variable value at the anytime using the and let. But in const it is not possible by the name itself we can see it is a constant. OK this is not possible. The 4th one block scope. Basically a block scope means writing a code in between the open and close curly braces.

Comments