var myMysteryVariable1 = document.getElementByClassName("myClass");
var myMysteryVariable2 = document.getElementsByTagName("div");
var myMysteryVariable3 = document.getElementById("abc");
var myMysteryVariable4 = document.getElementsByTagName("li");
var page_name = $("#pageToEdit :selected").text();
var table_name = $("#pageToEdit :selected").val();
var optionResult = $("#pageToEditOptions :selected").val();
var myMysteryVariable1 = document.getElementByClassName("myClass");
var string = "?z=z";
if ( page_name != 'undefined' ) { string += "&page_name=" + page_name; }
if ( table_name != 'undefined' ) { string += "&table_name=" + table_name; }
if ( optionResult != 'undefined' ) { string += "&optionResult=" + optionResult; }
foo.substring(1); // ReferenceError: foo is not defined
var myMysteryVariable1 = document.getElementByClassName("myClass");
var myMysteryVariable1 = document.getElementByClassName("myClass");
if (myName == null)
{
alert ('it is null!');
}
var myMysteryVariable4 = document.getElementsByTagName("li");
if (li == undefined)
{
alert ('its undefined');
}