Question: Answer the following questions: Create a JavaScript array that contains the names of each of the loops available in JavaScript. Each loop name should constitute

Answer the following questions:

Create a JavaScript array that contains the names of each of the loops available in JavaScript. Each loop name should constitute one element of the array.

Write JavaScript code to display the names of the JavaScript loops (from the array in the previous question) in a single alert message. One loop name should be displayed on each line.

When creating an array, is it better to create a dynamic array or a static array? Explain your answer. Be sure to discuss each type of array in your answer.

Write the commands to create a confirm message to ask the user if they would like to submit their order. If the user clicks OK, assign the variable named submitted to true. If the user clicks Cancel, assign the variable named submitted to false. Assume that the variable named submitted has already been created.

Is the following statement true or false? Explain your answer.

When opening a new Web browser window, you should use the window.open JavaScript method instead of the target attribute.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!