What is the output when you run this script in the browser?
Consider the following code:
var myString= "Hello World";
alert(myString.length);
What is the output when you run this script in the browser?
Which example correctly implements inline scripting with JavaScript?
Which example correctly implements inline scripting with JavaScript?
What is the purpose of the prototype property in JavaScript?
What is the purpose of the prototype property in JavaScript?
Which of the following is a practice associated with the security risk known as cross-site scripting (XSS)?
Which of the following is a practice associated with the security risk known as cross-site scripting (XSS)?
What does Z represent in this code?
Consider the following statement:
for (X; Y; Z)
What does Z represent in this code?
Which statement will return the mathematical sum of these variables?
Suppose you define two variables as follows:
var x = 5;
var y = "5";
Which statement will return the mathematical sum of these variables?
Which choice demonstrates the correct syntax for declaring a variable?
Which choice demonstrates the correct syntax for declaring a variable?
Which statement will return the name of the browser being used to view the script?
Which statement will return the name of the browser being used to view the script?
which script block will retrieve an input value and display it back without errors or warnings?
In an X/HTML form, which script block will retrieve an input value and display it back without errors or warnings?
Which choice shows the correct JavaScript code for this action?
You want to add a personalized interaction with your users when they enter your Web site. To do this, you can display a JavaScript prompt on the home page that asks the user to enter her name. When the user enters text and clicks the OK button, an alert dialog box will appear and display the text "Welcome, name" (where name is the text entered by the user). Which choice shows the correct JavaScript code for this action?