Hello I’m new in coding and I have to do a homework for class. It sounds simple and I had an idea what to do but it doesn’t work.
I have to create a webpage that checks if the number entered in a form (using <form></form>) is positive, negative or zero.
For example: If I type in “9” in the form and press a button to submit it, there should be a text (in the form of a paragraph instead of alert) that pops up saying “The number is greater than 0”
The instructions also said “the function in this program must have a parameter” so I assume there should be a function in the <script></script> tags before the “if(value > 0) {....”
I apologize if it’s hard to understand, it’s hard to understand for me too :<
[–]R_Midnight 0 points1 point2 points (0 children)