Home > Preview
The flashcards below were created by user
on FreezingBlue Flashcards.
This is done by putting the string "use strict" at the top of a file or function body.
Debugging strategy 1
putting a few strategic console.log calls into the program is a good way to get additional information about what the program is doing.
When a function cannot proceed normally, what we would like to do is just stop what we are doing and immediately jump back to a place that knows how to handle the problem.
Unwinding the stack or raising an exception
It jumps out of not just the current function but also out of its callers, all the way down to the first call that started the current execution.
is used to raise an exception. catching one is done by wrapping the piece of code in a try block.
What would you like to do?
Home > Flashcards > Print Preview