Someone helped my with this earlier, but didn't give me 100% what I wanted. This program averages the grades that are entered, but what if no grades were entered? How do I detect whether or not the user entered grades into the promptbox, and if they didn't, how can I display that No Grades were entered in place of where it says "The Average of the grades you've entered is:"
Here's the HTML
<button id="avgBtn">Prompt</button> <p>The average of the grades you've entered is: <span id="average"></span></p>