-
throw
throw new Error('<Error message>')The program will be terminated
-
try
try{}catch(<error>){conlose.log(<error>.massage)}//errorfinally{}//always -
debugger
debuggerSimilar to a breakpoint, the program will pause here
throw
throw new Error('<Error message>')
The program will be terminated
try
try{}catch(<error>){ conlose.log(<error>.massage)}//errorfinally{}//always
debugger
debugger
Similar to a breakpoint, the program will pause here