1

I've just getting into programming and I was told to try and use node.js for JavaScript. I've been watching this tutorial here and he seems to have a tab open called local host where he is allowed to code. I have no idea how to do this. I guess hes using a live-server? I've tried going online here to set it up but to no avail. I am using Ubuntu 14.04.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Alkarin
  • 464
  • 7
  • 20
  • node.js can use localhost, aka `127.0.0.1` or (your IP here). node comes with the http module (require("http")), which is all the server you need. look at the node home page. – dandavis Oct 17 '15 at 03:55
  • Not really a programming question, the Javascript tag can be removed – Jesse Oct 17 '15 at 04:10

1 Answers1

0

At the beginning of the video he explains how to tell your browser to show that javascript console where you can interactively play around - its F12 or ctrl+shift+J on ubuntu ... you can download Node.js here

Once you have installed Node.js then from a linux/OSX terminal type :

node  

which launches node in an interactive javascript execution command line mode ... Behind the facade of chrome browser or node is the V8 engine which is actually where javascript gets compiled and executed

Scott Stensland
  • 26,870
  • 12
  • 93
  • 104