Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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?

imageimage

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of Cost Accounting

Authors: William Lanen, Shannon Anderson, Michael Maher

3rd Edition

9780078025525, 9780077517359, 77517350, 978-0077398194

More Books

Students also viewed these Programming questions

Question

Is times interest earned meaningful for utilities? Why or why not?

Answered: 1 week ago