Array destructuring is a unique technique that allows you to neatly extract an array’s value into new variables.
An array bundles values that a user cannot name, while an object bundles values that a user can name.
An asynchronous function is a function that runs in its own timing—without waiting for another function to finish its execution first.
call(), apply(), and bind() make it possible for you to change the runtime binding of a function’s this keyword from one object to another.
Declaration means to declare the creation of variables and functions. Initialization occurs when you assign an initial value to a variable.
exec() executes a search for a regular expression pattern in its string argument.
filter() creates a new array that contains all the calling array’s elements that passed the test specified by the method’s argument.
Whenever you use forEach() on an array, the method executes its function argument once for each item of the calling array.
This Glossary defines important terms used in programming and web development.
Learn how to code with simplified code snippets.
indexOf() searches its calling array for the first occurrence of the method's string argument.
indexOf() searches its calling string for the first occurrence of the method's string argument.
lastIndexOf() searches its calling array for the last occurrence of the method's argument.
lastIndexOf() searches its calling string for the last occurrence of the method's argument.
Lexical scope is the definition area of an expression. Therefore, an item's lexical scope is the place in which the item got created.
Logic is the analytical action performed by a computer, which often requires the computer to decide if a condition is true or false.
map() creates a new array that contains the result of invoking map()'s function argument on each item of the calling array.
matchAll() creates a new iterator object containing all the patterns—including capturing groups—that match the method's regular expression argument.
Minimax algorithm is a recursive function that helps a player minimize the maximum possibility of losing a game.
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.
Networking means connecting things, while software networking in programming means connecting two or more software applications.
Object destructuring is a unique technique that allows you to neatly extract an object’s value into new variables.
References to valuable tech-related resources
Recursion is a method by which a problem gets solved through iteration. This article will use an example to illustrate recursive functions.
Whenever you use reduce() on an array, the method uses its function argument to reduce its calling array’s items to a single value.
replace() returns a new version of its calling string after replacing some specified patterns with a given replacement.
search() searches its calling string for the first occurrence of the method's regular expression argument.
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.
split() returns an array containing the result of splitting a string into substrings.
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 is a coding practice where you write the result you want your program to produce before creating the program.
test() tests its string argument for an occurrence of a regular expression.
toLowerCase() returns the lowercase version of its calling string.
toUpperCase() returns the uppercase version of its calling string.