Question: Task 1 : Create an Unordered List with JavaScript Add ONE at the bottom of the section in the given HTML file: The script should

Task 1: Create an Unordered List with JavaScript
Add ONE at the bottom of the section in the given HTML file:
The script should create an unordered list with five list itemsThe list items should be generated via a loopAll HTML elements should have proper closing tagsThe list should be appended to the element with an id of task-1
Task 2: Prompt and Number Analysis
Add the following to the script file that was added in Task 1:
Create a with the text "Enter a number" and an id of "number"When the button is clicked, a prompt dialog box should open to input an integer valueAfter getting the value, determine:
If the value is negative, zero, or positive.If the number is odd or even.
Create some HTML elements and text to display these two facts on the pageAppend the HTML elements to the div with the id="number-facts"
Task 3: Button Click Handler
Add an input element to the #task-3 section:
Its type should be button.Its value should be Click me!.Its onclick should be clickHandler().
Add a
below the input with an id of output.
Add a JavaScript function named clickHandler to the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!