JavaScript

Introduction to JavaScript

BEGINNER

#JavaScript

Author: Zakhar Pidporinov

Course description

If you want to learn JavaScript from scratch, this course is for you! Here, you will gain a thorough understanding of all the fundamental (general) tools of the JavaScript language. You will learn the basics, such as the differences between literals, keywords, variables, and more.

info

Complete all chapters to get certificate

0%

Basic Concepts

chevron

First, let's get acquainted with JavaScript and look at its syntax. In this section, you will get a basic familiarity with the JavaScript syntax to make it easier to learn in detail later on.

About JavaScript

Syntax

Challenge: Hello, World!

Comments

Challenge: Single-line Comment

Challenge: Multi-line Comment

Literals, Variables and Data Types

chevron

Now it's time to learn about the data types that JavaScript works with. We'll start by looking at the difference between literals and variables, and then delve into the various data types.

Literals and Variables

Variables Overview

Challenge: Define the Variable

const

Data Types Overview

Array

Array Methods

Challenge: Operations with Array

Basic Operations

chevron

We have become familiar with the various data types. Now, let's learn how to work with them by learning the operations we can perform with each data type.

Assignment

Math Operations

Operations with Assignment

Increment and Decrement

Challenge: Change the Variable

Comparison Operations

Logical Operations

Challenge: Compare Variables

String Concatenation

Challenge: Sentence Building

Conditional Statements

chevron

Next, we will learn how to control the flow of execution. It's a straightforward process: we can tell the interpreter exactly what to do under certain conditions.

if

else

else if

Challenge: Large or Small?

Loops

chevron

Next, we will explore how to shorten code using repetitive looped actions. We will examine the types of loops available in JavaScript and learn how to work with them.

while

do while

Challenge: Counting Rhyme

for

Challenge: Tigers

break

continue

Challenge: Stop and Skip

Functions

chevron

Finally, to be able to write simple programs, we need to learn about functions that can make our lives much easier. We will learn how to create and use our functions.

What is function?

Definition

Challenge: My Name

Arguments

return

Challenge: Sum

Summary