How to Run Modern JavaScript

JavaScript has evolved considerably, but the runtime engines are still catching up. Different browsers have varied support for the newer versions of JavaScript’s different features.

Here are a few options for running JavaScript in general and, in particular, to practice.

Run in Node.js

The easiest way to practice the code is in Node.js. Versions 8.5 and later support most of the latest features. This course will guide you along where necessary if you need to use a command-line experimental option or an additional tool.

Installing Node.js

First, verify that Node.js is installed on your system. Point your browser to https://nodejs.org and download the latest version if you don’t have it or if you have a fairly old version. To avoid colliding with versions of Node.js already installed on your system, use Node Version Manager5 (NVM) if it’s supported on your operating system.

Get hands-on with 1200+ tech skills courses.