- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Arrow Function vs Regular Function in JavaScript #codingquiz #programming #coding #frontenddev #js
Can you guess the output? This JavaScript quiz tests your understanding of how this behaves differently in arrow functions vs regular functions. Learn how context changes everything in JS and avoid common pitfalls in real-world coding!
Explanation:
regularFunc() uses a regular function, so this refers to the object obj. It correctly returns "Neha".
arrowFunc() is an arrow function, which does not have its own this. Instead, it inherits this from the lexical (outer) scope — usually the global scope in this context. Since this.name is undefined in the global context, it returns undefined.
#JavaScript #Coding #ArrowFunction #WebDevelopment #FrontendDeveloper #JS #LearnToCode #100DaysOfCode #Developer #CodeNewbie #TechTips #ProgrammingQuiz #FullStackDeveloper #SoftwareEngineer #CodeChallenge #CodingLife #WebDev #JSFun #InterviewPrep #TechEducation
Видео Arrow Function vs Regular Function in JavaScript #codingquiz #programming #coding #frontenddev #js канала FrontEndGuru
Explanation:
regularFunc() uses a regular function, so this refers to the object obj. It correctly returns "Neha".
arrowFunc() is an arrow function, which does not have its own this. Instead, it inherits this from the lexical (outer) scope — usually the global scope in this context. Since this.name is undefined in the global context, it returns undefined.
#JavaScript #Coding #ArrowFunction #WebDevelopment #FrontendDeveloper #JS #LearnToCode #100DaysOfCode #Developer #CodeNewbie #TechTips #ProgrammingQuiz #FullStackDeveloper #SoftwareEngineer #CodeChallenge #CodingLife #WebDev #JSFun #InterviewPrep #TechEducation
Видео Arrow Function vs Regular Function in JavaScript #codingquiz #programming #coding #frontenddev #js канала FrontEndGuru
Комментарии отсутствуют
Информация о видео
17 июня 2025 г. 17:08:24
00:00:18
Другие видео канала




















