Part 3: JavaScript - Program Outline, and Startup Function We are going to use a function, startup(), that we can consider an entry point into our running JavaScript. Below is your startup code. // Entry point startup() function startup() { // Step 1 (Required): Populate the config array with three objects to be used for each of the three // prompts, each object with the following properties: // prompt: String property to hold prompt() text // prop: String property that is the property to be used when storing user input for this prompt const config = [ ]; // Empty data array to hold prompt input const data = []; // Step 2: Use a for loop to collect user input using config array prompt for prompt(), storing all three // data points using the config prop value as the property, and all three prop: value stored in a single object // as a single array item // Step 3: Use console.log to display each data property and value on // a single line, with each property: value separated by a comma // e.g. Artist: OneRepublic, Song: I Ain't Worried, Year: 2022 // Tip: Use a for loop over the data array, and then a for loop over config } // Call startup() startup(); >> Add the above code code to your cis111-08.js JavaScript file below your multiline comment.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Part 3: JavaScript - Program Outline, and Startup Function
We are going to use a function, startup(), that we can consider an entry point into our running JavaScript. Below is your
startup code.
// Entry point startup()
function startup() {
}
// Step 1 (Required): Populate the config array with three objects to be used for each of the three
// prompts, each object with the following properties:
// prompt: String property to hold prompt() text
// prop: String property that is the property to be used when storing user input for this prompt
const config = [
];
// Empty data array to hold prompt input
const data = [];
// Step 2: Use a for loop to collect user input using config array prompt for prompt(), storing all three
// data points using the config prop value as the property, and all three prop: value stored in a single object
// as a single array item
// Step 3: Use console.log to display each data property and value on
// a single line, with each property: value separated by a comma
// e.g. Artist: OneRepublic, Song: I Ain't Worried, Year: 2022
// Tip: Use a for loop over the data array, and then a for loop over config
// Call startup()
startup();
>> Add the above code code to your cis111-08.js JavaScript file below your multiline comment.
Transcribed Image Text:Part 3: JavaScript - Program Outline, and Startup Function We are going to use a function, startup(), that we can consider an entry point into our running JavaScript. Below is your startup code. // Entry point startup() function startup() { } // Step 1 (Required): Populate the config array with three objects to be used for each of the three // prompts, each object with the following properties: // prompt: String property to hold prompt() text // prop: String property that is the property to be used when storing user input for this prompt const config = [ ]; // Empty data array to hold prompt input const data = []; // Step 2: Use a for loop to collect user input using config array prompt for prompt(), storing all three // data points using the config prop value as the property, and all three prop: value stored in a single object // as a single array item // Step 3: Use console.log to display each data property and value on // a single line, with each property: value separated by a comma // e.g. Artist: OneRepublic, Song: I Ain't Worried, Year: 2022 // Tip: Use a for loop over the data array, and then a for loop over config // Call startup() startup(); >> Add the above code code to your cis111-08.js JavaScript file below your multiline comment.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education