Arguments in JavaScript – What Exactly Is an Argument?
An arguments object is one of the default properties JavaScript automatically adds to every non-arrow function you define.
An arguments object is one of the default properties JavaScript automatically adds to every non-arrow function you define.
Array destructuring is a unique technique that allows you to neatly extract an array’s value into new variables.
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.
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.
A block is a pair of braces used to group multiple statements. Block typically gets used in JavaScript functions and CSS rulesets.
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.
The code tidbits on this page are pictorial explanations of various web development concepts. Use them to learn JavaScript, HTML, CSS.
JavaScript data types refer to the kind of values you can assign to JavaScript variables. The two main ones are primitives and non-primitive.
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.
A JavaScript function is an executable piece of code used to bundle a block of zero or more statements.
This Glossary defines important terms used in programming and web development.
Hoisting refers to JavaScript giving higher precedence to the declaration of variables, classes, and functions during a program’s execution.
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.
JavaScript's match() method creates a new array containing all the patterns that match the method's regular expression argument.
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.
JavaScript modules are files that allow you to export their code. Therefore, allowing other JavaScript files to use the exported code.
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.
JavaScript’s pop() method removes and returns its calling array’s last item. It does not accept any argument.
A JavaScript primitive data type is any plain value used to program a webpage. Examples are Number, Boolean, String, Null, and BigInt.
JavaScript's push() method adds its arguments to the end of its calling array and returns the calling array’s new length.
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.
A regular expression (RegExp) is a JavaScript element used to bundle the patterns you wish to find in a specific string of characters.
replace() returns a new version of its calling string after replacing some specified patterns with a given replacement.
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.
search() searches its calling string for the first occurrence of the method's regular expression argument.
JavaScript’s shift() method removes and returns its calling array’s first item. It does not accept any 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.
JavaScript's slice() method duplicates a specified part of its calling array into a new array—without altering the original array.
JavaScript's splice() method alters its calling array by adding or removing a specific number of items to/from it.
split() returns an array containing the result of splitting a string into substrings.
A state is a specific event managed by a stateful program. In JavaScript, variables are memories, while variables' values are states.
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.
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.
JavaScript’s this keyword refers to the owner object of the keyword's method or the "this" value of an arrow function’s lexical context.
toLowerCase() returns the lowercase version of its calling string.
toUpperCase() returns the uppercase version of its calling string.
JavaScript's unshift() method adds its arguments to the beginning of its calling array and returns the calling array’s new length.
A JavaScript variable is a container used to store data. JavaScript variables differ from mathematical or other generic variables.