HTML and CSS Reference
In-Depth Information
Since JavaScript is not a type checked language, it is not until run-time that an exception
will be caused by this line. If you now refresh the screen and click the “Add task” button
you will see that the debugger automatically stops on this line:
You can now interact with the environment in the console. For instance, you can execute
this line of code to see what is wrong with it:
> evt.callUnknownFunction();
TypeError: Object #<Object> has no method 'callUnknownFunction'
Finally, you can use the button in the bottom left of the debugger to undock the debugger
into a separate window. This is very useful if you have dual screens, since the debugger can
run in one window, and the browser in the other.
Before finishing, remember to change your add task event listener back to the correct im-
plementation.
Search WWH ::




Custom Search