JavaScript > Beginner

What is the scope of a variable declared outside a function?

for example, what would be the scope of variable coloe

var color = "blue";
function ChangeColor(newColor)
{
    color = newColor;
}
Answers :
Time Left
Question Number : /20
Please do not press back or refresh button during this test.

Login

Register

Next Question