add Book() Used to add a new book to the catalogue. Each book will have a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
add Book() Used to add a new book to the catalogue. Each book will have a title, author, and genre. showBooks () Used to display a list of book titles and their indexes in the catalogue. This list will be displayed in the console. show Book() Used to the details of a book, including the book's title, author, and genre. The book's details will be displayed in the console. The user will request the book by its index. Objective The console can be used to execute any JavaScript on the page, including functions. This allows for user interaction without the need for an interface. Use what you have learned about functions, arrays, objects, and loops to create a book catalogue. Actions The user can invoke the following function from the console add or view books in the catalogue. Requirements 1. The assignment should utilize one HTML (index.html) and JavaScript (script.js) file, each located at the root of the repository. 2. The Book Catalogue should be represented by an array. Each book in the catalogue should be represented by an object. 3. You may not declare variables with var. Use either const or let. 4. All three functions described above must be created and accessible from the console. add Book() Used to add a new book to the catalogue. Each book will have a title, author, and genre. showBooks () Used to display a list of book titles and their indexes in the catalogue. This list will be displayed in the console. show Book() Used to the details of a book, including the book's title, author, and genre. The book's details will be displayed in the console. The user will request the book by its index. Objective The console can be used to execute any JavaScript on the page, including functions. This allows for user interaction without the need for an interface. Use what you have learned about functions, arrays, objects, and loops to create a book catalogue. Actions The user can invoke the following function from the console add or view books in the catalogue. Requirements 1. The assignment should utilize one HTML (index.html) and JavaScript (script.js) file, each located at the root of the repository. 2. The Book Catalogue should be represented by an array. Each book in the catalogue should be represented by an object. 3. You may not declare variables with var. Use either const or let. 4. All three functions described above must be created and accessible from the console.
Expert Answer:
Related Book For
Systems Analysis and Design in a Changing World
ISBN: 978-1305117204
7th edition
Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd
Posted Date:
Students also viewed these databases questions
-
Part A A skateboarder starts up a 1.0-m-high, 30 ramp at a speed of 7.2 m/s. The skateboard wheels roll without friction. At the top, she leaves the ramp and sails through the air. How far from the...
-
Do some amendment and enhance the given research paper: Table of Content Abstract..3 Action Research.4 Research Methodology and Design...5 Literature Review: NoSQL Database7 Proposal.7 Iteration 1..8...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
A voltage V is applied to a dc electric motor. The armature winding resistance is equal to R. At what value of current flowing through the winding will the useful power of the motor be the highest?...
-
Given is the flow of a channel of large width b under a sluice gate, as in Fig. P10.69. Assuming frictionless steady flow with negligible upstream kinetic energy, derive a formula for the...
-
Given that z = x + iy, find (a) Re () (b) Re ()
-
A steel manufacturer extrudes scrap for manufacturing blades. Specifications require that the thickness of this scrap has \(\mu=0.020 \mathrm{~mm}\) and \(\sigma=0.005 \mathrm{~mm}\). (a) Use the...
-
Tre Corporations stockholders equity at December 31 consisted of the following (in thousands): Capital stock, $10 par, 60,000 shares issued and outstanding $ 600 Additional paid-in capital 150...
-
This course is UNDC201, it includes concepts, definitions, legal provisions, different types and methods as well as markets for organized criminal activities of organized criminal groups....
-
The following trial balance was extracted from the books of Alice Ltd, a wine merchant, at the close of business on 31 December 2020 Trial Balance Capital Purchases Sales Revenue Trade payable Trade...
-
Calculate the four components of expenditure and GDP for the following economy using data from the table below. Consumption expenditures $600 Exports 75 Government purchases of goods and services 200...
-
Stanfield Inc. entered into the following transactions. a. Issued common shares to investors in exchange for $50,000 cash b. Borrowed $15,000 cash from Royal Bank c. Purchased $8,000 of supplies on...
-
Given that f(x)=x, find (fo f)(-1). 1
-
How do you balance the need for transparency and confidentiality in resolving conflicts within sensitive contexts such as legal disputes or organizational controversies?
-
How do you integrate principles of restorative justice into conflict resolution processes within intricate social ecosystems?
-
BBR is a company which was a late arrival on the BBQ scene. The BBR share price today is 5.70 and the company will pay a dividend of 2% of todays share price in three months and again in nine months....
-
Consider the following information: Rate of Return if State Occurs State of Probability of Economy State of Economy Stock A Stock B Stock C Boom 0.20 0.38 0.48 0.28 Good 0.50 0.14 0.19 0.12 Poor 0.20...
-
Wimot Trucking Corporation uses the units-of-production depreciation method because units-of-production best measures wear and tear on the trucks. Consider these facts about one Mack truck in the...
-
Describe in your own words how an object-oriented program works.
-
What is a Gantt chart? What is it used for?
-
What is a thing called in models used by traditional analysts and database analysts?
-
Consider the following 1. Safety valve 2. Steam trap 3. Steam separator 4. Economiser Among these the boiler accessories would include (a) l, 2 and 3 (b) 2, 3 and 4 (c) l and 4 (d) l, 2, 3 and 4
-
Match List I and List II and select the correct answer using the codes given below the lists List I (Type of boiler) A. Babcock and Wilcox B. Lancashire C. La-mont D. Cochran List II (Classification...
-
Injector is used in small boilers (a) to inject steam to increase its capacity (b) to inject water like a feed pump (c) to inject air to the furnace (d) none of the above
Study smarter with the SolutionInn App