I'm working on a HTML webpage lab that I'm not sure how to continue in the script.js
Fantastic news! We've Found the answer you've been seeking!
Question:
I'm working on a HTML webpage lab that I'm not sure how to continue in the script.js page in the Visual Studio Code, can someone help?
Transcribed Image Text:
createCourseArray() It should look for elements that have course name and date information and create and return an array of JS objects in this format {code: "ACIT 1620 - Web Fundamental Technologies", date:"Fall 2020"}. findCourse(courseList) - It accepts the array from the previous function as value. Inside the function: Get a 4-digit number from the user e.g. "1620". Prompt the user again if invalid data is entered. o Write a loop to iterate through the array and check if any of the array element's code property contains the provided number by the user. yes, change the background color of the area related to that course element to green. o If not, add a new element to the HTML page (similar to the existing courses) and show the entered value as the course code and "N/A" as the course description and Fall 2020 as the course date. O createCourseArray() It should look for elements that have course name and date information and create and return an array of JS objects in this format {code: "ACIT 1620 - Web Fundamental Technologies", date:"Fall 2020"}. findCourse(courseList) - It accepts the array from the previous function as value. Inside the function: Get a 4-digit number from the user e.g. "1620". Prompt the user again if invalid data is entered. o Write a loop to iterate through the array and check if any of the array element's code property contains the provided number by the user. yes, change the background color of the area related to that course element to green. o If not, add a new element to the HTML page (similar to the existing courses) and show the entered value as the course code and "N/A" as the course description and Fall 2020 as the course date. O
Expert Answer:
Related Book For
Fundamentals of Cost Accounting
ISBN: 978-0077398194
3rd Edition
Authors: William Lanen, Shannon Anderson, Michael Maher
Posted Date:
Students also viewed these programming questions
-
/** * WEB222 - Assignment 02 * * I declare that this assignment is my own work in accordance with * Seneca Academic Policy. No part of this assignment has been * copied manually or electronically...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
In February, a new company incurred the following total costs for the production of 10,000 units during its first month of operations: Variable Fixed $500,000 $350,000 Manufacturing Overhead $250,000...
-
A partially completed worksheet for Roy Anderson, CPA, for the month ending June 30, 2019, is shown below. INSTRUCTIONS 1. Record the balances as of June 30 in the ledger accounts. 2. Prepare the...
-
Susan from marketing is working on the launch strategy of a new product line. Susan is strongly advocating for spending a big part of the budget on TV advertisement to boost this product's sales, as...
-
True or False: The RMS can be calculated for a nonperiodic time waveform.
-
Boaz Company manufactures CH-21 through two processes: Mixing and Packaging.In July, the following costs were incurred. Units completed at a cost of $21,000 in the Mixing Department are transferred...
-
You are working as an analyst for a potential investor in a new wind farm. The wind farm will be located in a small electricity market. The market currently has one major generation firm and several...
-
An element crystallizes into a structure which may be describedby a cubic type of unit cell 7. having one atom in each corner ofthe cube and two atoms on one of its face diagonals. If the volumeof...
-
Show the result of the moves on Rubik's cube indicated in Problems 3-29. Remember that R, F, L, B, T, and U mean rotate \(90^{\circ}\) clockwise the right, front, left, back, top, and under faces,...
-
Suppose that you toss a coin and roll a die in Problems 28-31. The sample space is shown in Figure 13.1. Figure 13. 1 What is the probability of obtaining: a. Heads and an odd number? b. Heads or an...
-
A single card is selected from an ordinary deck of cards. The sample space is shown in Figure 12.2. Find the probabilities in Problems 24-27. Figure 12. 2 a. \(P(\) jack \) b. \(P\) (spade) c. \(P\)...
-
A box contains one each of \(\$ 1, \$ 5, \$ 10, \$ 20\), and \(\$ 100\) bills. You reach in and withdraw one bill. What is the expected value?
-
In Problem 41, suppose that the income for hitting oil is changed to \(\$ 825,000\) and the income for gas to \(\$ 225,000\). Now what is the expectation for the drilling company? Should the company...
-
Jagma Jet has made the decision to operate a new jet, to carry back travelers from Chile. The jet has a purchase price of $18 million which Jagma could finance with a 7.5% loan from GE Capital....
-
H Corporation has a bond outstanding. It has a coupon rate of 8 percent and a $1000 par value. The bond has 6 years left to maturity but could be called after three years for $1000 plus a call...
-
Some people argue that paying contingent compensation is unnecessary. Instead, the firm should just pay a fair salary and the manager will do what is expected. Do you agree?
-
You and two friends drive your car to Texas for spring break. A third friend asks if you can drop her off in Oklahoma. How would you allocate the cost of the trip among the four of you?
-
SPG Company manufactures and sells metal products that are used in many manufacturing operations. The management at SPG believes strongly in decentralized decision making and using performance...
-
The following is the distribution of the hourly number of trucks arriving at a company's warehouse: Find the mean of this distribution, and using it (rounded to one decimal place) as the parameter...
-
With reference to Exercise 10.42, verify that the mean of the observed distribution is 1.6 , corresponding to \(40 \%\) of the cars requiring repairs. Then look up the probabilities for \(n=5\) and...
-
Among 100 purification filters used in an experiment, 46 had a service life of less than 20 hours, 19 had a service life of 20 or more but less than 40 hours, 17 had a service life of 40 or more but...
Study smarter with the SolutionInn App