Pergunta de entrevista da empresa SelectMedia

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