Which would be used to have a JavaScript function named hello() execute before the user views a web page?
Which of the following will set the variable num to the valu…
Which of the following will set the variable num to the value of 10 if num = 10.3625?
An array in JavaScript is considered:
An array in JavaScript is considered:
Which of the following will set the variable num to the val…
Which of the following will set the variable num to the value of 10 if num = 10.3625?
What will display after the following code is run if name =…
What will display after the following code is run if name = “Morris”? if(name > “Joe”) document.write(“Morris is a cat.”); else document.write(“Joe rules!”);
Which is equivalent to (X > 5) given that X is a numeric v…
Which is equivalent to (X > 5) given that X is a numeric variable.
Which of the following is not a valid function call?
Which of the following is not a valid function call?
Given that Y is a numeric variable, which of the following…
Given that Y is a numeric variable, which of the following is NOT equivalent to: (Y
What is the scope of the variable pen on line 6? var pen =…
What is the scope of the variable pen on line 6? var pen = “Bic”; var pencil = “0.7 mm lead”; function writeIt() { document.write(“I have a ” + pen + ” pen.”); pen = “Flair”; document.write(“You have a ” + pen + ” pen.”); var pencil = “0.5mm lead”; document.write(“I prefer pencils with ” + pencil); }
Which of the following is NOT a valid variable name?
Which of the following is NOT a valid variable name?