Examples of error handling in JavaScript.