January 2018
Beginner
658 pages
13h 10m
English
Now that you know a little bit about the debugger, I want you to use it inside our notes application. What we will do inside notes.js is add the debugger statement in logNote function as the first line of the function. Then I will run the program in debug mode, passing in some arguments that will cause logNote to run; for example, reading a note, after the note gets fetched, it's going to call logNote.
Now, once we have the debugger keyword in the logNote function and run it in debug mode with those arguments, the program should stop at this point. Once the program starts in debug mode, we'll use c to continue, and it'll pause. Next, we'll print out the note object and make sure it looks okay. Then, ...
Read now
Unlock full access