Showing posts from March, 2016

One Nice and Easy Way to Test JavaScript Concepts

If you are an application developer, there is a high possibility that you develop web applications.  As such there is a high probability that you will run into a situation where you need to test some JavaScript concepts.  There are official ways to run JavaScript unit tests.  But that's not what I am referring to here.  Sometimes you just need to test how something works in JavaScript. 

Recently I wanted to test what JavaScript with types that were undefined.  Rather than run the application, I wanted to run some simple JavaScript code.  Most you already know this but it's worth mentioning anyway, in case you don't.  You can test out many concepts right from the command line using node.  But not just from you DOS command line, from your node command line,  the REPL (Read Eval Print Loop).

First you have to install node.  You can find out how to install it from the official node website.

Once you have install node and configure it.  You can begin running JavaScript right f…