Guess My Number - guess validation

This issue has been tracked since 2022-01-25.

It might be a good idea to add maximum and minimum limits on the input field where the user enters the guess number.

05-Guess-My-Number/starter/index.html (link to file)
05-Guess-My-Number/final/index.html (link to file)

Current code (line 19):
<input type="number" class="guess" />

Suggested code:
<input type="number" class="guess" min="1" max="20" />

This validation could be done in JavaScript in the game's logic but would be good if learners get used to implementing such validations in HTML itself; would be good user experience as well.

bobweein wrote this answer on 2022-08-26

Get it !thank you for shareing !

More Details About Repo
Owner Name jonasschmedtmann
Repo Name complete-javascript-course
Full Name jonasschmedtmann/complete-javascript-course
Language JavaScript
Created Date 2018-06-14
Updated Date 2023-03-29
Star Count 12137
Watcher Count 850
Fork Count 14403
Issue Count 153


Issue Title Created Date Updated Date