Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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.
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education