Question
In the context of this exercise, what does onChange
mean?
Answer
onChange
means to invoke some function on each change of an input field. It is similar to onClick
in that it follows a similar naming convention, and it is applied in a similar way to an element. A “change” happens whenever there is a change to the value of the input form, such as by typing in a character, deleting characters, or copying and pasting text into the field.