January 2018
Beginner
658 pages
13h 10m
English
To test this inside of the Terminal, we'll start by rerunning the command with an address that's invalid:
node app.js -a 000000

When we run this command, we see that Unable to find address. prints to the screen. Instead of the program crashing, printing a bunch of errors, we simply have a little message printing to the screen. This is because the code we have in second else if statement, that tried to access those properties that didn't exist, no longer runs because our first else if condition gets caught and we simply print the message to the screen.
Now we also want to test that the first message (Unable ...
Read now
Unlock full access