/documentation/coffee/expressions_try.coffee

http://github.com/jashkenas/coffee-script · CoffeeScript · 6 lines · 6 code · 0 blank · 0 comment · 0 complexity · dfe30c7ba03f5bf42e1d9a3220675986 MD5 · raw file

  1. alert(
  2. try
  3. nonexistent / undefined
  4. catch error
  5. "And the error is ... #{error}"
  6. )