Difference in Var Let Const | most asked javascript interview questions

Published: 16 November 2022
on channel: CodingLesson
85
2

// Difference between var let const | most asked javascript interview question
// 1
// var is introduce in ES5
// let and const are introduce in ES6

// 2
// if we try to use var variable before it's declaration then it it will use undefined
// where as in let and const it will show reference error can not use variable before it's initailization

// 3
// var variable can be redeclare with the same name
// let and const can not redeclare with the same name

// 4
// in hoisting var variable stored in global
// let const are stored in different memory called script

// 5
// var have functional scope
// let and const have block scope


Watch video Difference in Var Let Const | most asked javascript interview questions online without registration, duration hours minute second in high quality. This video was added by user CodingLesson 16 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 85 once and liked it 2 people.