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:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education