Difference in Var Let Const | most asked javascript interview questions

Опубликовано: 16 Ноябрь 2022
на канале: 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


Смотрите видео Difference in Var Let Const | most asked javascript interview questions онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodingLesson 16 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 85 раз и оно понравилось 2 людям.