filmov
tv
Javascript Quiz: How Well Do You Know Function in Javascript #programming #javascript #coding #quiz
Показать описание
Are you ready for another code challenge? Join me in this video as you test your coding knowledge with the simple quiz questions.
Don't forget to make your guess in the comments below.
-------------------------------------------------------------------------------------------
🔔Like and subscribe for more videos. 🔔
Connect me on linkedin :
------------------------------------------------------------------------------------------
Answer: OPTION:- A) 10
Explanation:
The foo function accesses the variable x from the outer scope, because it is not declared inside the bar function. Therefore, when foo is called inside bar, it logs the value of the outer x variable, which is 10.
Don't forget to make your guess in the comments below.
-------------------------------------------------------------------------------------------
🔔Like and subscribe for more videos. 🔔
Connect me on linkedin :
------------------------------------------------------------------------------------------
Answer: OPTION:- A) 10
Explanation:
The foo function accesses the variable x from the outer scope, because it is not declared inside the bar function. Therefore, when foo is called inside bar, it logs the value of the outer x variable, which is 10.