jashkenas--coffeescript/documentation/js/expressions_try.js

7 lines
138 B
JavaScript

alert((function() {
try {
return nonexistent / undefined;
} catch (error) {
return "And the error is ... " + error;
}
})());