Pregunta de entrevista de SelectMedia

How would you notify the user if something went wrong using JavaScript?