In order to create a JavaScript file, I'm going to first up in the sublime text, text editor. And then I'm going to click on file, and then click new file. So it's going to start or create a new file. And here what you need to do is that you need to click again on file, and then Save As, and it's going to tell you what name you want to give to this file. So suppose that I'm going to give it a name of Java Script. And you need to add dot j s as the extension.
So in order to make it a JavaScript file, we need to add j s as an extension for this file, and then you set the location where you want to save this file. I'm going to save it on my desktop, and I'm going to click on Save. And as you can see, it was created on my desktop up. So now this is a JavaScript file where we can create or add our code.