
Join the Conversation!
Subscribing gives you access to the comments so you can share your ideas, ask questions, and connect with others.
In this short video we'll talk about our workflow. It's important that you know exactly how we're going to do something so that you can replicate it or practice by yourself.
To ensure your JavaScript file works with your HTML:
Open .
Type and select the HTML5 boilerplate suggestion.
Just before the closing tag, add this line:
<script src="script.js"></script>
To see your JavaScript code in action:
Write the following in :
console.log('Hello, World!');
Save your changes (Cmd/Ctrl + S).
Right-click on index.html in the file explorer, select Reveal in Finder/Explorer, and open the file in your browser.
You should see “Hello, World!” in the browser’s console. Congratulations, you’ve written your first JavaScript program!
To make coding easier and more enjoyable, we’ll use a few VS Code extensions.
To install them, go to the Extensions tab, search for them, and click Install.
To keep the console and your code side by side:
Customize VS Code for clarity:
Let’s make sure everything is working:
In , replace the existing code with:
alert('Connected!');
Save the file and reload the browser. If you see an alert pop up, your files are connected correctly.
You’ll spend most of your time in VS Code and your browser. Get comfortable experimenting with the setup:
That’s it for now! Take a moment to grab your favorite drink, relax, and get ready to dive into real programming.
"Please login to view comments"
Subscribing gives you access to the comments so you can share your ideas, ask questions, and connect with others.
How did you manage to remove the blur property and reach here?
Upgrading gives you access to quizzes so you can test your knowledge, track progress, and improve your skills.
By logging in, you'll unlock full access to this and other free tutorials on JSM Pro.
Why? Logging in lets us personalize your learning experience, track your progress, and keep you in the loop with new workshops, coding tips, and platform updates.
You'll also be the first to know about upcoming launches, events, and exclusive discounts.
No spam—just helpful content to level up your skills.
If that sounds fair, go ahead and log in to continue →
Enter your name and email to get instant access
##Looks like we found a thief monkey By the way, I liked the trick how you reached till here. You have a good sense of humor. You will improve a lot if you join our course with this passion.
var
(function-scoped, outdated)let
(block-scoped, modern and recommended)const
(block-scoped, cannot be reassigned)_
, or $
let let = 5;
is invalid)myVar
and myvar
are different)string
, number
, boolean
, null
, undefined
, bigint
, symbol
Objects
, Arrays
, Functions
Subscribing gives you access to a brief, insightful summary of each lecture to stay on track.
00:00:00 In this short video, let's talk about our workflow.
00:00:03 It's important that you know exactly how we're going to do something so that you can replicate it or practice by yourself.
00:00:10 Step one is to set up our workspace.
00:00:12 Start by creating a new empty folder anywhere on your system.
00:00:16 I'll create it right here on my desktop, and I'll call it CPJSM, which stands for the Complete Path to JavaScript Mastery.
00:00:23 Next, just drag and drop it or open it within your code editor.
00:00:27 Once you're there, you can open up the File Explorer.
00:00:31 Right-click and create two new files, index.html and script.js.
00:00:39 Within the HTML file, simply type HTML and select the HTML5 boilerplate suggestion.
00:00:45 Just before the closing body tag, render a script that has a source pointing to your JavaScript file, script.js.
00:00:55 So, to see whether we have connected the file successfully, head over into the script.js and write console.log hello world.
00:01:06 Save your changes by pressing Ctrl or Command S, right-click on the index.html file, and click Reveal in Finder or open in File Explorer.
00:01:15 Right-click it and open it with your browser.
00:01:18 You should be able to see just the blank screen, but let's open up the console by pressing Command Option J or F12 on Windows,
00:01:26 and then click Console.
00:01:29 If you zoom it in a bit, you should see Hello World in the browser's console.
00:01:33 So, congrats!
00:01:35 You've written your first JavaScript program.
00:01:37 But now, to make our coding a bit more easier and enjoyable, let's use a few VS Code extensions.
00:01:43 To install them, head over to the Extensions tab and type Live Server.
00:01:48 It has 60 million downloads, so just install it.
00:01:52 and click Trust Publisher and Install.
00:01:54 This extension will allow you to see live changes in your browser as you edit.
00:01:58 At the bottom right corner, you should be able to see a Go Live button.
00:02:02 So click on it while having the index.html file opened.
00:02:06 It'll say Starting, and then open it up on a specific port.
00:02:10 And like before, this will open it up in a browser.
00:02:13 So let's organize our workspace.
00:02:15 I'll open up the console by clicking F12, And I'll dock it to the right side by clicking these three dots and then clicking right here.
00:02:24 And now resize the browser to keep both the editor as well as the console visible.
00:02:29 Something like this should do the trick.
00:02:31 And if you want to hide this blue bar, if you're using Arc, you can just press Command T and then say turn off developer mode for this site.
00:02:39 And that way we have a very clean overview of what's happening live in the browser by modifying our code right here in the editor.
00:02:47 So, if you change this to say something like, hello JS Mastery right now, and press Command S, you should be able to see the changes live on the right side.
00:02:55 And I'll make it even bigger so we can see what's happening.
00:02:58 Now, while I did say that you could use either WebStorm or VS Code for this course, in this case, due to the VS Code simplicity,
00:03:05 I would recommend just proceeding with it, because it makes things super simple to follow along with.
00:03:11 We can also tidy it up a bit by removing the unused panels like .env, run and debug, thundercline, whatever you have installed,
00:03:19 you can only keep the most important ones right here.
00:03:22 The file explorer, the search, the source control, and the extensions.
00:03:27 You can also hide some of the other ones from the bottom by right-clicking them and then deselecting them.
00:03:32 And don't forget that you can always zoom in or zoom out by pressing Ctrl or Command plus and minus.
00:03:38 And just to make sure that everything is working, in Script.js, instead of Konza log, say alert connected.
00:03:46 And if you save it, you should be able to see some kind of a browser pop-up that says connected.
00:03:51 But that's a bit too intrusive, so let's stick back with the Konza log because we can know that it's connected this way as well.
00:03:58 So this view that you're seeing right now is how you'll be spending most of your time in within this course, VS Code and the browser.
00:04:06 So get comfortable experimenting with this setup.
00:04:09 Write some new Consologue statements and test them.
00:04:11 Tweak the settings or view to suit your preferences and install additional extensions if you find them helpful.
00:04:17 But that's it for now.
00:04:19 Take a moment to grab your favorite drink, relax, and get ready to dive into the code.