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 : 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
Task : Prompt and Number Analysis
Add the following to the script file that was added in Task :
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"numberfacts"
Task : Button Click Handler
Add an input element to the #task section:
Its type should be button.Its value should be Click meIts 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
