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.
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
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education