how to trigger on input event in javascript

Solutions on MaxInterview for how to trigger on input event in javascript by the best coders in the world