Skip to main content
CF

JavaScript Basics for Beginners

6h 39m 44s
English
Paid

JavaScript is a core skill for web work. You use it to add logic to web pages and apps. You see it in sites you use each day. This course gives you a clear and friendly start. You learn each idea with small steps, real tasks, and simple code.

What You Will Learn

You begin with the basics. You write small scripts and see what each line does. You learn how to store data, work with arrays, and write functions. You also learn how to handle user input and make simple changes on a page.

Why JavaScript Matters

JavaScript runs in every web browser. It also runs on servers with Node.js. You can build sites, tools, and full apps with one language. This makes it a strong choice when you start your coding path.

Where You See It Used

  • Interactive forms
  • Dashboards and charts
  • Mobile apps
  • Server tools with Node.js

Who This Course Is For

You can take this course if you are new to coding. You can also take it if you learned a bit of JavaScript before but want a clean review. You do not need past experience.

What You Need Before You Start

You only need a computer and a web browser. You write code in simple tools. You test each example as you learn it.

How the Course Works

Short Lessons

Each lesson covers one clear idea. You read, try the code, and move on.

Hands-On Practice

You get small tasks after each topic. These tasks help you build good habits.

Step-by-Step Solutions

You can check a clean solution for each task. This helps you see better ways to write code.

About the Author: Mosh Hamedani (Code with Mosh)

Mosh Hamedani (Code with Mosh) thumbnail

Mosh Hamedani is the founder of Code with Mosh, one of the highest-volume independent online instructors in software education. He has been publishing courses continuously since the early Udemy era and has taught over a million students across his Udemy catalog and his standalone Code with Mosh platform. His teaching style is patient, rigorously structured, and deliberately beginner-tolerant — the courses are widely cited as some of the most accessible introductions to their respective topics.

The Code with Mosh catalog covers an unusually wide span: web development with HTML / CSS / JavaScript / React / Angular / Node.js, Python and Django, C# and .NET, mobile development with React Native and Flutter, SQL and database fundamentals, and the algorithm / data-structure interview prep tracks. Few independent instructors maintain this much breadth at consistent quality.

The CourseFlix listing under this source carries over 35 Code with Mosh courses spanning that range. Material is paid; Code with Mosh runs on per-course pricing on the original platform. Courses are aimed primarily at developers picking up a new technology from a clean start through to working production proficiency.

Watch Online 102 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 102 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Welcome
All Course Lessons (102)
#Lesson TitleDurationAccess
1
Welcome Demo
00:29
2
What is JavaScript?
04:41
3
Setting Up the Development
03:10
4
JavaScript in Browsers
03:48
5
Separation of Concerns
02:05
6
JavaScript in Node
01:51
7
Variables
05:37
8
Constants
01:45
9
Primitive Types
03:11
10
Dynamic Typing
03:18
11
Objects
05:15
12
Arrays
04:19
13
Functions
04:40
14
Types of Functions
03:17
15
JavaScript Operators
00:41
16
Arithmetic Operators
03:40
17
Assignment Operators
01:45
18
Comparison Operators
02:02
19
Equality Operators
03:12
20
Ternary Operators
02:11
21
Logical Operators with Non-booleans
05:31
22
Logical Operators with Non-Booleans
05:54
23
BitWise Operators
08:29
24
Operator Precedence
01:15
25
Exercise- Swapping Variables
02:27
26
If...else
05:24
27
Switch...case
04:42
28
For
05:51
29
While
02:12
30
Do...While
03:30
31
Infinite Loops
02:43
32
For...In
04:26
33
For...of
01:16
34
Break and Continue
02:35
35
Max of Two Numbers
04:00
36
Exercise- Landscape or Portrait
02:26
37
Exercise- FizzBuzz
06:40
38
Exercise- Demerit Points
09:06
39
Exercise- Even and Odd Numbers
02:03
40
Exercise- Count Truthy
04:34
41
Exercise- String Properties
02:59
42
Exercise- Sum of Multiples 3 and 5
02:41
43
Exercise - Grade
06:33
44
Exercise - Stars
02:34
45
Exercise - Prime Numbers
08:25
46
Basics
04:54
47
Factory Functions
05:45
48
Constructor Functions
05:49
49
Dynamic Nature of Objects
02:04
50
Constructor Property
02:25
51
Functions are Objects
04:48
52
Value vs. Reference Types
05:50
53
Enumerating Properties of an Object
05:10
54
Cloning an Object
04:22
55
Garbage Collection
01:15
56
Math
02:57
57
String
06:26
58
Template Literals
04:53
59
Date
04:01
60
Exercise 1- Address Object
01:42
61
Exercise- Factory and Constructor Function
03:03
62
Exercise 3- Object Equality
04:00
63
Exercise 4- Blog Post Object
02:16
64
Exercise 5- Constructor Functions
02:53
65
Exercise 6- Price Range Objects
03:38
66
Introduction
00:32
67
Adding Elements
03:36
68
Finding Elements (Primitives)
03:33
69
Finding Elements (Reference Types)
05:47
70
Arrow Functions
01:35
71
Removing Elements
03:04
72
Emptying an Array
04:15
73
Combining and Slicing Arrays
03:41
74
The Spread Operator
02:26
75
Iterating an Array
02:33
76
Joining Arrays
03:12
77
Sorting Arrays
06:33
78
Testing the Elements of an Array
03:45
79
Filtering an Array
02:47
80
Mapping an Array
07:48
81
Reducing an Array
06:44
82
Exercise 1- Array from Range
01:51
83
Exercise 2- Includes
01:55
84
Exercise 3- Except
02:09
85
Exercise 4- Moving an Element
06:32
86
Exercise 5- Count Occurrences
04:32
87
Exercise 6- Get Max
06:15
88
Exercise 7- Movies
04:39
89
Function Declarations vs. Expressions
03:19
90
Hoisting
01:57
91
Arguments
04:16
92
The Rest Operator
04:39
93
Default Parameters
03:41
94
Getters and Setters
05:39
95
Try and Catch
05:36
96
Local vs. Global Scope
04:45
97
Let vs Var
05:53
98
The This Keyword
07:23
99
Changing This
07:01
100
Exercise 1- Sum of Arguments
03:43
101
Exercise 2- Area of Circle
01:54
102
Exercise 3- Error Handling
02:50
Unlock unlimited learning

Get instant access to all 101 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Related courses

Frequently asked questions

What are the prerequisites for this course?
There are no prerequisites for this course. It is designed for beginners who are new to coding. All you need is a computer and a web browser. You will write code using simple tools and test each example as you learn it.
What projects or exercises will I work on during the course?
Throughout the course, you will engage in various exercises such as Swapping Variables, Landscape or Portrait, FizzBuzz, Demerit Points, Even and Odd Numbers, Count Truthy, String Properties, Sum of Multiples 3 and 5, Grade, Stars, and Prime Numbers. These exercises are designed to reinforce the concepts taught in the lessons and provide hands-on practice.
Who is the target audience for this course?
This course is suitable for absolute beginners who are new to coding. It is also ideal for those who have some basic knowledge of JavaScript and seek a structured review of the fundamentals. No prior experience is required.
How does this course compare in depth or scope to other beginner JavaScript courses?
The course provides a foundational understanding of JavaScript through 102 lessons. It covers essential topics like variables, functions, arrays, and user interaction. Each lesson focuses on a single concept with hands-on tasks and step-by-step solutions, which can be beneficial for beginners looking for a clear and sequential learning path.
What specific tools or platforms will I learn to use in this course?
The course teaches JavaScript fundamentals that run in every web browser and on servers using Node.js. You will learn to write scripts that can be executed in the browser environment, and the course briefly touches upon JavaScript in Node.js as well.
What topics are not covered in this course?
While the course covers the basics of JavaScript, it does not delve into advanced topics such as asynchronous programming, complex data structures, or JavaScript frameworks like React or Angular. The focus is on foundational concepts and hands-on practice with simple code.
How much time should I expect to commit to this course?
The course comprises 102 lessons, each designed to be concise and focused on a single concept. The time commitment will vary based on individual learning pace and practice time, but you should expect to spend several hours reviewing lessons and completing exercises for thorough understanding and skill development.