exception

  1. throw

    throw new Error('<Error message>')

    The program will be terminated

  2. try

    try{}
    catch(<error>){
    conlose.log(<error>.massage)
    }//error
    finally{}//always
  3. debugger

    debugger

    Similar to a breakpoint, the program will pause here