Category: JavaScript Tutorial

python tutorials and learn python

Created with Sketch.

JavaScript Spread Operator

JavaScript Spread Operator Summary: in this tutorial, you will learn about the JavaScript spread operator that spreads out elements of an iterable object. Introduction to the JavaScript spread operator ES6 provides a new operator called spread operator that consists of three dots (…). The spread operator allows you to spread out elements of an iterable…
Read more

JavaScript Template Literals In Depth

JavaScript Template Literals In Depth Summary: in this tutorial, you will learn about JavaScript template literal, which allows you to work with a string template more easily. Before ES6, you use single quotes (‘) or double quotes (“) to wrap a string literal. And the strings have very limited functionality. To enable you to solve…
Read more

ES6 Tutorial

ES6 Tutorial ECMAScript 2015 or ES2015 is a significant update to the JavaScript programming language. It is the first major update to the language since ES5 which was standardized in 2009. Therefore, ES2015 is often called ES6. To follow this ES6 tutorial, you should have a good knowledge of JavaScript up to ES5. Section 1. New…
Read more

JavaScript String Type

JavaScript String Type Summary: in this tutorial, you will learn about the JavaScript String type and how to manipulate strings effectively. Introduction to JavaScript String type The String type is object wrapper of the string primitive type and can be created by using the String constructor as follows: let str = new String(‘JavaScript String Type’);…
Read more

JavaScript BigInt

JavaScript BigInt Summary: in this tutorial, you’ll learn about the BigInt type which is the built-in object that can represent whole numbers larger than 253 – 1. Introduction to the JavaScript BigInt ES2020 introduced a new built-in object called BigInt that allows you to represent whole numbers larger 253 – 1. The bigint is the primitive type…
Read more

JavaScript Number Type

JavaScript Number Type Summary: in this tutorial, you will learn about the JavaScript Number type and its useful methods for working with numbers effectively. Introduction to JavaScript Number type Besides the primitive number type, JavaScript also provides the Number reference type for numeric values. To create a Number object, you use the Number constructor and pass in a…
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

JavaScript Primitive Wrapper Types

JavaScript Primitive Wrapper Types Summary: in this tutorial, you will learn about the primitive wrapper types including Boolean, String, and Number. Introduction to primitive wrapper types JavaScript provides three primitive wrapper types: Boolean, Number, and String types. The primitive wrapper types make it easier to use primitive values including booleans, numbers, and strings. See the…
Read more

JavaScript Variable Scopes

JavaScript Variable Scopes Summary: in this tutorial, you will learn about the JavaScript variable scope that determines the visibility and accessibility of variables. What is variable scope? Scope determines the visibility and accessibility of a variable. JavaScript has three scopes: The global scope Local scope Block scope (started from ES6) The global scope When the…
Read more

JavaScript Hoisting

JavaScript Hoisting Summary: in this tutorial, you’ll learn about JavaScript hoisting and how it works under the hood. Introduction to the JavaScript hoisting When the JavaScript engine executes the JavaScript code, it creates the global execution context. The global execution context has two phases: Creation Execution During the creation phase, the JavaScript engine moves the…
Read more