Category: JavaScript Tutorial

python tutorials and learn python

Created with Sketch.

JavaScript Primitive vs. Reference Values

JavaScript Primitive vs. Reference Values Summary: in this tutorial, you’ll learn about two different types of values in JavaScript including primitive and reference values. JavaScript has two different types of values: Primitive values Reference values Primitive values are atomic pieces of data while reference values are objects that might consist of multiple values. Stack and…
Read more

JavaScript Objects

JavaScript Objects Summary: in this tutorial, you will learn about JavaScript objects and how to manipulate object properties effectively. Introduction to the JavaScript objects In JavaScript, an object is an unordered collection of key-value pairs. Each key-value pair is called a property. The key of a property can be a string. And the value of…
Read more

JavaScript string

JavaScript string Summary: in this tutorial, you’ll learn about the JavaScript string primitive type and how to use it to define strings. Introduction to the JavaScript strings JavaScript strings are primitive values. Also, strings are immutable. It means that if you modify a string, you will always get a new string. The original string doesn’t…
Read more

JavaScript boolean type

JavaScript boolean type Summary: in this tutorial, you’ll learn about the JavaScript boolean type that has two literal values true and false. Introduction to the JavaScript boolean type The JavaScript boolean primitive type has two literal values: true and false. The following example declares two variables and initializes their values to true and false: let…
Read more

A Quick Look at Octal and Binary Literals in ES6

A Quick Look at Octal and Binary Literals in ES6 Summary: in this tutorial, you will learn how to represent the octal and binary literals in ES6. ES5 provided numeric literals in octal (prefix 0), decimal (no prefix), and hexadecimal (0x). ES6 added support for binary literals and changed how it represents octal literals. Octal…
Read more

JavaScript Numeric Separator

JavaScript Numeric Separator Summary: in this tutorial, you’ll how to use the JavaScript numeric separator to make the numeric literals more readable. Introduction to the JavaScript numeric separator The numeric separator allows you to create a visual separation between groups of digits by using underscores (_) as separators. For example, the following number is very…
Read more

JavaScript Numbers

JavaScript Numbers Summary: in this tutorial, you’ll learn about the JavaScript number types and how to use them effectively. Introduction to the JavaScript Number JavaScript uses the number type to represent both integers and floating-point values. Technically, the JavaScript number type uses the IEEE-754 format. ES2020 introduced a new primitive type bigint representing big integer…
Read more

JavaScript Data Types

JavaScript Data Types Summary: in this tutorial, you will learn about the JavaScript data types and their unique characteristics. JavaScript has the primitive data types: null undefined boolean number string symbol – available from ES2015 bigint – available from ES2020 and a complex data type object. JavaScript is a dynamically typed language. It means that…
Read more

JavaScript Variables

JavaScript Variables Summary: in this tutorial, you’ll learn about JavaScript variables and how to use variables to store values in the application. A variable is a label that references a value like a number or string. Before using a variable, you need to declare it. Declare a variable To declare a variable, you use the…
Read more

JavaScript Syntax

JavaScript Syntax Summary: in this tutorial, you will learn about JavaScript syntax, including whitespace, statements, identifiers, comments, expressions, and keywords. Whitespace Whitespace refers to characters that provide the space between other characters. JavaScript has the following whitespace: Carriage return Space New Line tab JavaScript engine ignores whitespace. However, you can use whitespace to format the…
Read more