Consider the following code: What is the expected result of this script?
A. The word "Welcome" will be displayed in a prompt when the page loads
B. A welcome message will appear when the page loads
C. When you click the alert a welcome message will appear
D. When you click the welcome message a welcome alert will load
Kirken needs to write a script to construct custom objects that store user account information such as a username. password and e-mail address for a Web site. What should he add to the following code to set these properties?
A. Option A
B. Option B
C. Option C
D. Option D
Consider the following code:
The code displays a pop-up alert message if the username is less than 6 characters and submits the form. What change should be made to prevent the form from submitted if the username is less than 6 characters?
A. The function call on line 13 should be changed to validateForm();
B. Return false; should be added after the alert call on line 7
C. submit false; should be added after the alert call on line 7
D. The submit event handler on line 13 should be moved to line 16
Which of the following will correctly declare the courseNumber variable as a siring data type?
A. var courseNumber = ''JS101'';
B. var courseNumber = ''JS101'';
C. var_courseNumber = JS101'';
D. var courseNumber = JS101;
Which of the following is a true statement regarding the relationship between Promises and callback functions?
A. A Promise cannot be used in conjunction with a callback.
B. A Promise is used to monitor the value of a variable A callback retrieves the previous value of a variable.
C. A Promise is a returned object to which the developer can attach callbacks instead of passing callbacks to a function.
D. A Promise is an object a developer can use to pass callbacks to functions.
Which of the following is not a benefit of Web APIs?
A. Web APIs are frameworks that make it easy to build applications over HTTP services that are accessible over a large range of clients.
B. Web APIs provide an interface for developers to write code themselves instead of using APIs developed by others .
C. Web APIs are best used to create resource-oriented services.
D. Before Web APIs developers had to write the entire code for every task they needed to perform.
Consider the following code: The JavaScript function above will display the following:
A. The package will be delivered to P.O. Box 789 Central City Florida 54321 Company headquarters are located in 123 Main Street Anytown Arizona 98765
B. The package will be delivered to 123 Main Street Anytown Arizona 98765 Company headquarters are located in P.O Box 789 Central City Florida 541321
C. The package will be delivered to Arizona Company headquarters are located in Florida
D. The package will be delivered to Florida Company headquarters are located in Arizona
Which code could be used to send a user to another Web site when they click a button on the Web page?
A. Option A
B. Option B
C. Option C
D. Option D
Which of the following comparison statements will return true?
A. X = 15 ; Y = 3 ; X == y ;
B. X=15 Y=3; X +==45;
C. X = 15 Y = 3; X ! == y;
D. X = 15 Y = 3 X === y;
Which script will display Configurations, you won! In the browser when the script is run?
A. Option A
B. Option B
C. Option C
D. Option D