Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

What are some of the possible scenes from our future?

Answered: 1 week ago