Javascript. Need error box if no question mark is input : I'm new to javascript. I need some help with the following project. I'm doing a magic 8 ball and need to display the following:

If the same question is asked twice in a row, or if the question doesn’t end with a “?”, give appropriate error messages using the Alert function.

Please help!
Thank you!!