How to practice Javascript in Sublime?

So I am proceeding through the Javascript part of FCC & I totally understand the coding but how do I practice on in real life? (ie. using Sublime)

If I’m understanding your question correctly (and feel to correct me if I’m wrong), you should set up an HTML “boilerplate” file that contains something like this:

<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <title>Boilerplate HTML</title>
  <!-- some additional HTML content in here -->
  <script src="index.js"></script>

Then after you create an index.js file in the same folder as the HTML file, you can start writing JavaScript in that file. That’s basically how you start practicing in “real life”—by setting up your own web page on your own computer and adding JavaScript to it. Once you get good at that, the next level would be to host a website or web application on a server, like on your own web hosting (doesn’t need to be a full web host, a lot of people just use GitHub Pages which is free), or a cloud service like Heroku.

1 Like

JavaScript needs an engine to run it. The most obvious and straightforward way is to include the JavaScript file in an HTML page and run it in your browser.

If you want to run JavaScript simply by itself, you will need to use Node. Node is an environment that let’s you run JavaScript outside the browser. You will need to have some basic command line abilities. You can install it here:

And a quick tutorial to get setup:


Exactly what I was looking for. Thank you for taking the time to respond!

Perfect answer. I couldn’t remember how to do it. Thank you for taking the time to respond. Both of the responses I received were amazingly helpful!