exception

exception

  1. throw

    TEXT
    1
    throw new Error('<Error message>')

    The program will be terminated

  2. try

    TEXT
    1
    2
    3
    4
    5
    try{}
    catch(<error>){
        conlose.log(<error>.massage)
    }//error
    finally{}//always
  3. debugger

    TEXT
    1
    debugger

    Similar to a breakpoint, the program will pause here