How works event.target.value?

Basically it retrieves value of whatever input it was called on.

In this case, it’s your input element so whatever you insert in your input can be accessed through event.target.value

3 Likes