JavaScript Basics #8: Strings JavaScript Basics #8: Strings

JavaScript Basics #8: Strings

In the previous article, we assigned a string to a variable (let myName = 'Jan';). Now, let’s see how to concatenate and interpolate strings. Concatenation Concatenation is a fancy word for combination, and it’s performed with a + operator. It allows us to combine two string values even if they...

Jan Zavrel
Jan Zavrel July 02, 2021
JavaScript Basics #7: Methods & Properties JavaScript Basics #7: Methods & Properties

JavaScript Basics #7: Methods & Properties

Let’s focus on the console.log() for a bit now. The log() part is a method, which is a special kind of function. We will discuss functions and methods later, but since we use this one so frequently, I wanted you to know in the advance what it is. Each time...

Jan Zavrel
Jan Zavrel July 01, 2021
JavaScript Basics #6: Variables JavaScript Basics #6: Variables

JavaScript Basics #6: Variables

Imagine a container where you store a value. In programming, this kind of container is called a variable. Computer stores data in memory cells. Each cell has its own address so the computer can access it to either store or retrieve values from it. However, the address of the memory...

Jan Zavrel
Jan Zavrel June 22, 2021
JavaScript Basics #5: Operators JavaScript Basics #5: Operators

JavaScript Basics #5: Operators

You probably remember operators from your math class, so this topic should be pretty familiar. JavaScript has several built-in arithmetic operators, that allow us to perform calculations on numbers. Here’s the list of these operators including the symbols: Add: + Subtract: - Multiply: * Divide: / Remainder: % Open your...

Jan Zavrel
Jan Zavrel June 21, 2021
JavaScript Basics #4: Data Types JavaScript Basics #4: Data Types

JavaScript Basics #4: Data Types

In programming, we use the various kinds of data. To make a distinction, there are seven types of data in JavaScript. Except for the object data type that you already learned about (remember console?), the rest of them are so called primitives. These are all the data types available in...

Jan Zavrel
Jan Zavrel June 19, 2021
JavaScript Basics #3: Comments JavaScript Basics #3: Comments

JavaScript Basics #3: Comments

Once you start writing code, you’ll realize that not everything you write is meant to be executed by the program. On top of that, your code will become difficult to understand, especially if you don’t follow naming conventions which we will discuss later. I can confirm that sometimes when I...

Jan Zavrel
Jan Zavrel June 18, 2021
JavaScript Basics #2: Meet the Console JavaScript Basics #2: Meet the Console

JavaScript Basics #2: Meet the Console

The console is a special part of web browser aimed for developers. It helps us see what’s going on in our code. To make something appear in the console, we can print it with the log command. To be more specific, the console also refers to a special collection of...

Jan Zavrel
Jan Zavrel June 18, 2021
JavaScript Basics #1: Introduction JavaScript Basics #1: Introduction

JavaScript Basics #1: Introduction

What is JavaScript? JavaScript is an essential programming language supported by all modern browsers. It is crucial for anyone who wants to become a web developer to understand this web technology that’s expected to grow as a critical part of the modern web. JavaScript is an important part of the...

Jan Zavrel
Jan Zavrel June 15, 2021

TWDC

FRONTEND FROM SCRATCH