Global Scope and Function, freeCodeCamp Basic Javascript

preview_player
Показать описание
In this challenge we learn about global scope. Global scope refers to a variable that is availabe everywhere in javascript code, as opposed, for example, to a local variable that exist only in its function
Рекомендации по теме
Комментарии
Автор

Im doing the youtube version of this. Where can I find the instructions you have on the left?

ruebenhales
Автор

you literally did as instructed wth i need an explanation lol

shady
Автор

If anyone is not passing this test, but completed it per instructions, then try a different browser! I was using Firefox Developer Edition on Mac at first and even though I had my local variable inside the function the tests were still failing. I opened up the same lesson in Safari and passed the test! I don't know why the tests were failing on my Firefox. I prefer Firefox over Chrome for my browser for development, but guess there's a bug in the tests for this lesson that make it fail or maybe it was just the act of logging out and back in.

corollayanki