Exceptions do occur in any programming language, and knowing the type and details of the exception can be very crucial in debugging and determining a solution to the cause. I recently ran into a problem with one of my javascript functions and could not figure out why it was occurring. Little did I know that Javascript also provides exception information in the try, catch block. Here goes: try