Hey guys, today we are going to add JavaScript to Sublime Text so that you can run JavaScript in Sublime Text. First of all, you need to open Sublime Text and then click on Tools and then belt system and then new build system. And then you need to paste this line of codes or these two lines of codes. You need to paste them in this file and make sure that you have downloaded and installed no no j s on your PC. Make sure that the directory is this one the directory where you have installed node j s on your computer. So as you can see, this is my directory, the directory that I have downloaded and note on my Mac and make sure that is correct.
Now you need to save and You need to only change this on title to Java script and script and click on Save. And I'm not going to click on Save because they have already created that before. And if we go to Tools and again build system, you should see JavaScript here. So let's now try write some code. So suppose that I have this file. And I'm going to write just simple code to test if it works or not.
I have about a variable called A equals to Apple. And I am going to test it with console dot log. And I'm going to pass a and save and run. And to run just click Ctrl and B or click on build system and make sure that you selected your Have a script and then click on build. And as you can see in the console log below it printed out a pill.