Getting Started with JavaScript for Web Development

Types and Variables

Quick Tip

While not necessary, this is a convenience. To get your browser to automatically refresh every time you save your index.html file, we will use a package called BrowserSync and lite-server.

To install and use:

  1. Install Node and npm
  2. Make sure you can see your Node version using node -v and npm -v from your command line.
  3. Install lite-server: npm install -g lite-server
  4. From inside your project folder, run lite-server.

Your browser should then open to http://localhost:3000 and open your index.html file. This will also be refreshed whenever you save your files!

Like this article? Follow @chrisoncode on Twitter