Eventos JS
Un evento es algo que ocurre y puede ser detectado. Esta definición de partida es quizás demasiado simple. Podríamos decir que, si un usuario hace clic sobre un botón en una página web se produce un evento (el usuario ha hecho clic), pero también que si el usuario estornuda se produce un evento, lo cual…