Here's a simple project for beginners learning JavaScript:
Develop a web page which prompts a user to enter a number between 1 to 500. Based on the number entered, it must display to the user the number entered and the range the number belongs to. For instance, if the user entered 5, it can say you entered a number between 1 and 10. If the user enters 50, it must say you entered a number between 10 and 100 etc. If the user does not enter a number then it must say, You did not enter a number. If the user entered text, it must say, You entered text, this is not a number.
No comments:
Post a Comment