-
Notifications
You must be signed in to change notification settings - Fork 0
Suggestion #1
Copy link
Copy link
Open
Description
Choose a descriptive function name, and make some validation before setting the value like preventing the user to enter more than 6 digits and prevent him to enter an unexpected value.
Lines 23 to 27 in e21edff
| function input(e){ | |
| let hex = e.target.value; | |
| paint.style.backgroundColor = hex; | |
| textColor.style.color = hex; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels