SelectMedia interview question

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