IQ 23: Whats the problem with this JavaScript code?

preview_player
Показать описание
Find the problem in this JavaScript code. A question from a recent interview
Рекомендации по теме
Комментарии
Автор

Nice video. I solved this problem in a different way.
There is my solution: on line 8 just replace 'var' declaration with 'let' keyword and that's it! :)

stefanvicentijevic
Автор

i wonder why JavaScript is ahead of loading before HTML tags?

daviduntalan
visit shbcf.ru