Clarissa M.

asked • 02/21/21

In Javascript, how do I validate that the marks (Mark 1, Mark 2, and Mark 3) are numbers and not string?

If the user enters a string then how do I display an error in result id that, "You cannot enter string, please refresh the page again". The result id is this: <p id = "result"></p>


Use a simple code and easy to understand to type, please.

1 Expert Answer

By:

Patrick B. answered • 02/21/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.