JavaScript Tutorial for Beginners: Learn JavaScript Basics in 1 Hour [2019]

Watch this JavaScript tutorial for beginners to learn JavaScript basics in one hour.
🔥Get my Complete JavaScript Course to master JavaScript (83% OFF – LIMITED TIME ONLY):

⭐️Subscribe for more videos:

JavaScript is one of the most popular programming languages in 2019. A lot of people are learning JavaScript to become front-end and/or back-end developers.

I’ve designed this JavaScript tutorial for beginners to learn JavaScript from scratch. We’ll start off by answering the frequently asked questions by beginners about JavaScript and shortly after we’ll set up our development environment and start coding.

Whether you’re a beginner and want to learn to code, or you know any programming language and just want to learn JavaScript for web development, this tutorial helps you learn JavaScript fast.

You don’t need any prior experience with JavaScript or any other programming languages. Just watch this JavaScript tutorial to the end and you’ll be writing JavaScript code in no time.

If you want to become a front-end developer, you have to learn JavaScript. It is the programming language that every front-end developer must know.

You can also use JavaScript on the back-end using Node. Node is a run-time environment for executing JavaScript code outside of a browser. With Node and Express (a popular JavaScript framework), you can build back-end of web and mobile applications.

If you’re looking for a crash course that helps you get started with JavaScript quickly, this course is for you.


00:00 What is JavaScript
04:41 Setting Up the Development Environment
07:52 JavaScript in Browsers
11:41 Separation of Concerns
13:47 JavaScript in Node
16:11 Variables
21:49 Constants
23:35 Primitive Types
26:47 Dynamic Typing
30:06 Objects
35:22 Arrays
39:41 Functions
44:22 Types of Functions

⭐️Related Tutorials ⭐️
Node tutorial for beginners:

Express.js tutorial for beginners:

React tutorial for beginners:

Angular tutorial for beginners:

⭐️Learn More ⭐️
Want to learn more from me? Check out my blog and courses:


Emotions' Plenty says:


Interesting facts about the world says:

I couldn’t understand the ” Encaptulation and polymorphism ” concept. Could you please make a separate video slowly teaching please.

Han Cao says:

Thought you would talk about vectors XD

Eric Hamel says:

This is very useful, I see the similarities with Python especially with the string manipulations. I wrote all examples, my pen is dry now….

Derek Banas says:

My C++ Beginner Tutorial Series :

Nathan Diven says:

Why don’t you use a void main function?

Lior Tony Landa says:

saw the whole thing, to remind myself c++ since I didn’t work with it for quite some time
thank you very much!

Toto Ze says:

Not very informative a lot of mistakes and little things you don’t mention that add up to a lot

victory vinay says:

Dude, Can you plz tell me how you are learning a ton of computer languages like a PRO ,can u share the tips that you use….. in learning these languages plzzz

Caroline Crawford says:

Watched the entire thing and youre wonderful thank you!!

Jason McDaniel says:

Thanks: you move a bit fast thrue it ,but it is a very wholisticly encompassing lesson.

Akira Michaels says:

Good Video

Confused Hamster says:

How do I insert a new value to a table?

david John says:

It’s a great post and please keep us updating like this excellent information. Here I would like to share some information about the best IT Software Training Institute in Delhi that will definitely improve your computer knowledge. Register today!

Breanna Clayton says:

I’m new to JS and found this one to be the best yet. So after going through this video, I decided to purchase the full course. Thank You

Jenny Rojas says:

awesome … thanks

Eddie Meltzer says:

I dont know if this is the right place to ask but since im desperate…
Im trying to get back the titles of YT videos.Currently theres nothing between the view count and the video square.(yes,im pretty green)
They just disappeared one day,no idea why/how.Im browsing with Brave in win 10.

Crash Builds says:

SUPER useful for brushing up on my basics again!

Dawood.J J says:

Hi Mosh! JavaScript Tutorial explanation is awesome

Guljemal Rahmanova says:

I watched it till the end

ireland says:

9:23 bookmark

good mood says:

Hello! Who is good at programming? Can you help me to change this code from python to c++.
n = int(input())
mylist1 = []
mylist2 = []
mylist3 = []
count = 0
for a in range(n):
num1 = int(input())
for b in range(n):
num2 = int(input())
for c in range(n):
num3 = int(input())
for i in mylist1:
for j in mylist2:
for k in mylist3:
if i < j < k: count += 1 print(count)

Anunnaki says:

x1.5 – perfection

krisnna pal singh says:

I want to learn angular js is JavaScript and angular js are same thing do i need to know JavaScript before starting with angular js….

pon says:

I watched the whole thing. I will be watching this again in the near future. Thank you.

Tapan Pokharna says:

Great Video. This is a refresher course and not a beginners course. You cannot learn any language in one hour. Period!

Joseph Hussar says:

I type the “!”, and hit Tab, and nothing…

Jm Sanchez says:

why am i having this error at node

PS C:UsersdorwiOneDriveDocumentsjs-basics> $node index.js
At line:1 char:7
+ $node index.js
+ ~~~~~~~~
Unexpected token ‘index.js’ in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

Chris Henegar says:

I watched the whole thing, great introduction into C++. I’ve programmed in many other languages and this was very helpful. Thanks for sharing!

Michael Barron says:

Im about to begin learning C++. This was extremely useful having already learned many of these lessons in Java. I watched the whole thing and I thought it was great info. Thanks Derek!

ShawnB says:

“THANK YOU MOSH!” I followed your video step-by-step and it’s really helping me! THANKS AGAIN AND GOD BLESS YOU!!!

Alexei Fando says:

You make a good point, thanks!

Priscilla Alvarez says:

Your Brilliant! thank you

philip bromander says:

Watched ~80%. Great video. But I got a little confused by the pointers and referencers. Do they both point to a specific part in the memory or do one of them point to a part of memory and another the amount of data it occupies? And when would you use this information in an avarage program? When would you need to know the specific storage location and amount (except for debugging maybe)?

JuddMan says:

IsNotIntoxicated is an awful Boolean. That and the fact you needed to use a negative operator on it.

Shivansh Upadhyay says:

It is similar to c++

Maurice Williams says:

Learning every programming language will make one wealthy.

Satish Mohan says:

This is very useful Video to learn basic javascript

Sophoclis Stephanou says:

Recently bought the full course, which is really helpful! Will defenetly try out more. Thanks for the great content.

Faheem Ahmad says:

what is the game???

Galih indra says:

4:20 *MinnUs WaN Dats TrheE, QuIcK Maaffhh*

Rohit Rai says:

This is a coherent tutorial for JS. I came here to brush up my skills before I move on to react and node. It was helpful.


I already know some of the languages learning this was easy too and u were a great teacher to the this topic thanks

wrightway4us says:


אלון הרמון says:

0:27 html is not a programming language its a text editor!!!

Ezinwanne Ben-Ezenekwe says:

I just bought the full course on your website for only $5. You’re an amazing teacher! Best and most simplified video on JavaScript. Thanks for taking time out to teach beginners and not make coding look as scary as most YouTube teachers make it

Mikkel Jørgensen says:

I’ve basically locked myself inside ‘the lab’ for approx. 15 months learning Python, Django, CSS and much much more, and during this interval I’ve seen and read a LOT of tutorials on coding.

What usually bothers me is that these instructors clearly know a lot about coding while having absolutely no sense of pedagogical approach.

You don’t have this problem, and I’m grateful to have found your videos. I can hardly wait to dive into React now, as I expect that tutorial to be of the same quality as this one.

I already knew most of the subject matter in this video, however it did clear up the confusion regarding let vs var in mere seconds. And I got answers for a few things that I’d been wondering about and learned a few fancy little tricks, so without further adieu:

Thank you. You’re the best.

Omid. Am says:

may I ask where are you from?

Katorze Kilates says:

Hello Mosh, Thank you for your tutorial, I’m a beginner in coding totally new at this skill. I encounter a problem when I installed node.js I followed every single step you show but once I type it in the command Prompt it gives me an error “Cannot find module” I re installed node 3 times and I still get the same result I even follow a tutorial on how to install node.js typed in node -v and npm -v and it shows that it is installed, but it does not work as I follow your instructions I typed js-basics $ and from there on everything comes wrong is there another way I can continue Thanks for your help.

WASIF Studio says:


00:00 What is JavaScript
04:41 Setting Up the Development Environment
07:52 JavaScript in Browsers
11:41 Separation of Concerns
13:47 JavaScript in Node
16:11 Variables
21:49 Constants
23:35 Primitive Types
26:47 Dynamic Typing
30:06 Objects
35:22 Arrays
39:41 Functions
44:22 Types of Functions

Zxch says:


Omid. Am says:

_how can I install Visual Studio Code for windows Vista?
_Are “let” and “var” similar?

Axel Voss says:

Sublime is best

Jagjeet Chhabra says:

Could’nt we just use formatted string at 44:43 for joining the variables and the strings.??

Nikola Gutesa says:

Thanks, Mosh!
Great tutorial! 😀

Gabriele Sanguigno says:

Great video, I have been coming from C# and you made the transition super easy! Thanks!

Ricky Miles says:

Ok guys. Look at the title. This demented fool can not teach you javascript in one hour. No. Stop being low iq idiots and supporting slimy liars like the creator of this video. You can’t learn javascript in one hour. This is why your life is so bad. You listen to these bottom feeding snakes.

80Vikram says:

Nice introductory tutorial. Great way of marketing your final product. Loved this idea

LordLinux689 says:

tnx you great tutorial, salamat

Wächter Wächter says:

I bought the full JS course for just 9$ ! Me and my wife are very happy with this purchase, it shows that a <10$ course beats a half year college seminar easily. After completing this course I feel bad for Mosh selling it for just 9$ 🙂 Could easily sell it for 100$.
We will buy the next course for the full price 😉 It´s worth it!

Actually Programmer says:

I have a question somewhere at the start of the course you said there is a full course, but I can’t find it.

Nabil Dhifallah says:

same good remark fo your quick flash to the important application in java script

David Oliveira says:

Cara suas aulas são demais, tá de parabéns hein !
Man your lessons is so cool and clear …thank you

Pragnika says:

I was stuck initially. In the Browser i can only see blank page when I tried opening inspect element after writing the first JS line . Any idea ?

Sindhu Mohit says:

I love your teaching style..

Code on Mars says:

What are the new features of es10


Please guys theme editor ????

Luigi ProDesign says:

Hi! I’ve recently seen your videos, your explanations are amazings. Is this course similitar to the paid version that you offer in your webpage?

Kar Lee says:

Very basic beginner guide for javascript. Easily understandable by anyone.

Simon Ward says:

I didn’t struggle with HTML and CSS, but have been finding JS harder to grasp. This basics course is very intuitive, so I immediately went to your website and purchased the full course afterwards. I wish there was a way to more easily download the videos though – I have a flight tomorrow, and manually downloading the videos one at a time is a bit painful! None the less, thanks for your work.

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!