You will get an error if you try to use a variable without declaring it.
Press F12 to see the error description in the console.