JavaScript Tutorials
Learn about JavaScript
ποΈ Array Destructuring
Array destructuring is a unique technique that allows you to neatly extract an array's value into new variables.
ποΈ Array Object
An array object is an element used to bundle multiple unnamed values into a single item. A pair of square brackets defines JavaScript's array object.
ποΈ Asynchronous Programming
An asynchronous function is a function that runs in its own timingβwithout waiting for another function to finish its execution first.
ποΈ Data Types
JavaScript data types refer to the kind of values you can assign to JavaScript variables. The two main ones are primitives and non-primitive.
ποΈ Encapsulation
Encapsulation is the privatization of an object's data while providing publicly available methods for users to operate on the private data.
ποΈ Enumerable Properties
An enumerable property is a property whose enumerable attribute's value is configured to be true.
ποΈ Functions
7 items
ποΈ Hoisting
Hoisting refers to JavaScript giving higher precedence to the declaration of variables, classes, and functions during a program's execution.
ποΈ Lexical Scope
Lexical scope is the definition area of an expression. Therefore, an item's lexical scope is the place in which the item got created.
ποΈ Methods
8 items
ποΈ Modules
JavaScript modules are files that allow you to export their code. Therefore, allowing other JavaScript files to use the exported code.
ποΈ Namespace
A namespace is a named container used to store objects of any type. It allows you to use the same object multiple times in the same script.
ποΈ Non-primitive Data Type
A non-primitive data is a JavaScript value that can contain multiple other values. Object is the only non-primitive data that exist in JavaScript.
ποΈ Object Destructuring
Object destructuring is a unique technique that allows you to neatly extract an object's value into new variables.
ποΈ Object
An object is an element you can use to bundle up multiple named values into a single item. A pair of braces define JavaScript's properties object.
ποΈ Operators
7 items
ποΈ Primitive Data Type
A JavaScript primitive data type is any plain value used to program a webpage. Examples are Number, Boolean, String, Null, and BigInt.
ποΈ Recursion
Recursion is a method by which a problem gets solved through iteration. This article will use an example to illustrate recursive functions.
ποΈ Regular Expression
A regular expression (RegExp) is a JavaScript element used to bundle the patterns you wish to find in a specific string of characters.
ποΈ Scope
JavaScript scope is all about space. It refers to the area where an item (such as a variable) is visible and accessible to other code.
ποΈ Side Effect
Side effect occurs in a program whenever you use an external code in your function, which impacts the function's ability to perform its task.
ποΈ State
A state is a specific event managed by a stateful program. In JavaScript, variables are memories, while variables' values are states.
ποΈ Statement
A JavaScript statement is a piece of code used to instruct the computer on an action to execute. There are five typical types of statements.
ποΈ Temporal Dead Zone
A temporal dead zone is the area of a block where a variable is inaccessible until the computer completely initializes it with a value.
ποΈ Test-Driven Development
Test-driven development is a coding practice where you write the result you want your program to produce before creating the program.
ποΈ Variable
A JavaScript variable is a container used to store data. JavaScript variables differ from mathematical or other generic variables.
ποΈ Web Storage APIs
6 items
ποΈ Web Storage Explained
Web storage is the JavaScript API browsers provide for storing data locally and securely within a user's browser.