Answered step by step
Verified Expert Solution
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?
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started