Odd and Even Number Generator in JavaScript

This sample program that I wrote in JavaScript will show you how to create and use one dimensional array as your data structure to accept input values. I called this program Odd and Even Number Generator what does the program will do is to ask the user to give a series of numbers and then our program will enumerate and classify the odd and even number provided by our user.
If you have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.

'**************************************
' Name: Odd and Even Number Generator in JavaScript
' Description:This sample program that I wrote in JavaScript will show you how to create and use one dimensional array as your data structure to accept input values. I called this program Odd and Even Number Generator what does the program will do is to ask the user to give a series of numbers and then our program will enumerate and classify the odd and even number provided by our user.
If you have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com. My mobile number here in the Philippines is 09173084360.
' By: Jake R. Pomperada
'**************************************
<html>
<head>
<title> Even and Odd Number Generator </title>
</head>
<body>
<h1> Even and Odd Number Generator </h1>
<script>
var grades = [];
var i=0;
for (i = 0; i < 10; i++) {
grades.push(parseInt(prompt("Enter a value in item no. " + (i + 1))));
}
document.write("LIST OF EVEN NUMBERS");
document.write("<br><br>");
for (i = 0; i < 10; i++) {
if (grades[i] % 2 == 0){
document.write(grades[i] + "<br>");
}
}
document.write("LIST OF ODD NUMBERS");
document.write("<br><br>");
for (i = 0; i < 10; i++) {
if (grades[i] % 2 != 0){
document.write(grades[i] + "<br>");
}
}
</script>
</body>
</html>

Use this form to tell us if this entry should be deleted (i.e contains
no code, is a virus, etc.).This submission should be removed because:

Your Vote

What do you think of this code (in the
Beginner category)?(The code with your highest vote will win this month's coding contest!)
Excellent Good Average Below Average Poor
(See voting log ...)

Other User Comments

There are no comments on this submission.

Add Your Feedback

Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular code, please
click here instead.)

My nonprogramming sites: The Real Estate Crowdfunding Review: Investing tools that cut through the clutter and the hype.
Real information and reviews. Real-time investment feeds. Real profitable. | Dollar candy: Play 60 second puzzles against three other people for real money! Legal in 36 states and overseas.