🔥 Ace This JavaScript Interview Challenge! 🔥

preview_player
Показать описание
In this video, I present a JavaScript interview challenge that could pop up in real coding interviews! Test yourself and see if you can solve it. Whether you’re prepping for an interview or just looking to sharpen your skills, this challenge is a great way to practice. Comment your solution below and let’s see who can solve it! Don’t forget to like, subscribe, and hit the bell icon for more interview prep content. #codewithkg

#JavaScriptInterview #CodingChallenge #InterviewPrep #JavaScriptSkills #TechCareers #codewithkg
Рекомендации по теме
Комментарии
Автор

3. When setTimeout called it went to web api and after timer over then it comes to call back queue and wait for event loop to call. So I will point to 3. So I think 3 will be printed

hemanthvarupula
Автор

Swami saranam . Ayyapa please js continue cheyandi .

hemanthvarupula
Автор

if I am not wrong. ever time settimeout is called, the code inside it executed after the delay, by the time it gets executed thar value of i is updated to 3 which ends or exits for loop, as there is a closure the function inside set timeout still has access to value of i.

MyStumpsAndStories
Автор

Actually you need to explain how asynchronous settimeout and synchronous for loop code executes and how var scope behaves. This will be exact behaviour bro

CodeConnect
Автор

స్వామి పూర్తిగా జావాస్క్రిప్ట్ అప్లోడ్ చేయండి స్వామి.మీరు vedios ద్వారా మాస్టర్ అయిపోవాలి స్వామి.please upload 100 % vedios

NanReeStudio
Автор

Answer will be 3 because we used var keyword

ranikontham
visit shbcf.ru