O'Reilly logo
  • Ivan Petrov thinks this is interesting:

try {
    me.useSweater(100);
} catch (e) {
    // => Object #<Object> has no method 'useSweater'
    console.log(e.message);
}

From

Cover of Expert JavaScript

Note

try catch