write a JavaScript function in the folling html code that performs the following tasks: Prompt users to enter 12 numbers Find the number of even numbers Display the number of even numbers along with your id as text of the paragraph having the id “output” Change the font color of the paragraph to orange Add the appropriate code to execute the function once the button “Run the function” is clicked.   Here is the code:                Find the number of even numbers from the 12 values entred by the user The result should be displayed here Run the function       The following print screen shows how the web page looks after running the function:

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter10: Selected Single-row Functions
Section: Chapter Questions
Problem 20MC
icon
Related questions
Question
  • write a JavaScript function in the folling html code that performs the following tasks:
  • Prompt users to enter 12 numbers
  • Find the number of even numbers
  • Display the number of even numbers along with your id as text of the paragraph having the id “output”
  • Change the font color of the paragraph to orange
  • Add the appropriate code to execute the function once the button “Run the function” is clicked.

 

Here is the code:

<!DOCTYPE html>
<html>
    <script  language="javascript" type="text/javascript">
    


    </script>
<body>

<h2>Find the number of even numbers from the 12 values entred by the user</h2>
</br>
<p id="output" style="color:blue">The result should be displayed here</p>

<button >Run the function</button>




</body>
</html>
 
 
 
  • The following print screen shows how the web page looks after running the function:

 

Find the number of even numbers from the 12 values entred by the user
My ID 200sNer of eve valess
Run he tuncton
Transcribed Image Text:Find the number of even numbers from the 12 values entred by the user My ID 200sNer of eve valess Run he tuncton
Fle | DCASSPETDR1105 WDevelopment/Eampractica0Eamampleen
This page ays
mak
Find the number of odd numbers from the 10 values
The ad shod be diplayed ee
Canel
Run he unction
Transcribed Image Text:Fle | DCASSPETDR1105 WDevelopment/Eampractica0Eamampleen This page ays mak Find the number of odd numbers from the 10 values The ad shod be diplayed ee Canel Run he unction
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Image Element
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT