Question: Write a JavaScript program that asks the user to enter a student id, use a function to enter the student full name, ask the user

Write a JavaScript program that asks the user to enter a student id, use a function to enter the student full name, ask the user to enter a list of registered courses for the next semester and store it on the array. 1. Declare and initialize the necessary variables. 2. Add page title with your id. (1 point) 3. Ask the user to enter the ID. ( 0.5 point) 4. Create a function name "stfullname" to ask the student to enter 5.Thefunction"stfullname"shouldreturnthestudenthis/herfullname.(0.5point)(1point) (0.5 point) 6. Ask the user to enter a list of maximum 5 registered courses (use a loop). (1 point) 7. Save the registered courses on Array with name "course". (0.5 point) 8. Display the following output. (0.5 point) 9. Print the output on a table. 10. Use a header2 for the text" Registered course List" on the table. ( 0.5 point) 11. Save the page as "course.html". ( 0.5 point) Question 2:(2.5%) Do the following to "course.html" page: 1. Add div to the course page with id" divl". (1 point) 2. Write a paragraph on the div with your id, full name and your major. ( 0.5 point) 3. Using HTML DOM to change the color of the div to blue. ( 0.5 point) 4. Using HTML DOM to Print the content of the div into an alert box. (0.5 Point)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
