Test your JavaScript knowledge #quiz #javascript

preview_player
Показать описание
Don't forget to like and subscribe for more web dev quizzes!

#WebDevQuiz #softwareengineer #webdevelopment #webdeveloper #html #programming #quiz #frontend #coding #programming #javascript #arrays #javascripttutorial #css
Рекомендации по теме
Комментарии
Автор

Answer:

The inner function forms a closure and retains access to the x variable from the outer function's scope, even after outer has finished executing. Thus, closure() logs 10.

Did you get this right?

MyDevPage