Consider the following code:

What change if any needs to be made for a "Thank you" message to appear when the checkout page is loaded?
A. On fine 11 onupload need to be changed to onload.
B. On line 8 alter needs to be changed to prompt
C. On line 11, onupload needs to be changed to onload.
D. No changes needed. The alert message will appear when the page is loaded.
Which of the following is an advantage of using the Virtual DOM?
A. Rendering the virtual DOM is faster than rendering the regular browser DOM.
B. The virtual DOM updates each element when the layout of the DOM changes, meaning that the page always reflects the most current data from the server
C. The Virtual DOM is not just a view layer, but also makes changes directly to the Web page
D. You can learn virtual DOM concepts and React libraries quickly because the libraries are simple and concise
What basis code is needed to define the JavaScript function avgGrades?
A. Function avgGrades () {}
B. avgGrades function ()
C. avgGrades (){ }
D. var = function avgGrades () {}
Which choice demonstrates the correct syntax for declaring a variable to represent the month in which a person was born?
A. Var -birthMonth
B. Var birthMonth
C. Var ?birthMonth
D. Var %birthMonth
Janice needs to create a pop-up window that will open a Web document in a new browser window. Which code statement should she use?

A. Option A
B. Option B
C. Option C
D. Option D
Considering the following code:
Var 1 ;
For (I = 1; I < 10; I ++)
What part of the code fragment initializes the counter variable?
A. i++
B. i < 10;
C. i = 1;
D. Var 1;
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.
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
Zamar wants to add buttons to his Web page to allow users to navigate forward and backward through his Web site similar to the Forward and Back buttons in the Web browser window. Which JavaScript object will he use?
A. window
B. screen
C. history
D. navigator