Index
Video


Here is a video.. for this page.

Overview


Note that we do not cover testing js here. That is covered in a later chapter.

This is for cases where we just want to give our code a "quick run check".

We'll take a look at doing a quick run check in a browser which might be done in parallel, or after the other editing/running techniques mentioned in this chapter.

Example Run Check


First download this file... and copy the contained files into a new working directory.

You will find these files:


By browsing "foo.js", you will notice it prints these lines to the console:

I am Foo
Hello
Goodbye


Running the code:


Doing Run Check on Another File


The steps for checking another .js file are simple:


Web Browser Flakiness


On occasion, web browsers can be fussy (they have gotten better). If the browser is acting odd (e.g. not showing anything on console, etc) try to refresh. Also try "Clear Browsing Data". And then restart it.