Argument vs arguments Object β Learn the Difference
An argument is the value of the built-in arguments object.
An argument is the value of the built-in arguments object.
Arguments are the optional values you pass to a function through an invocator. And parameters are the names you assign to the values.
Array destructuring is a unique technique that allows you to neatly extract an array's value into new variables.
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.
The CSS matrix() function is a shorthand for defining 2D transformations.
The CSS matrix3d() function is a shorthand for defining 3D transformations.
perspective() transforms an element by adding some perspective effects to it.
rotate() transforms an element by rotating it two-dimensionally around a fixed point.
rotate3d() transforms an element by rotating it three-dimensionally around the x-, y-, and z-axis.
rotateX() transforms an element by rotating it three-dimensionally around the X-axis.
rotateY() transforms an element by rotating it three-dimensionally around the Y-axis.
rotateZ() transforms an element by rotating it three-dimensionally around the Z-axis.
scale() transforms an element by resizing (scaling) it two-dimensionally from a fixed point.
scale3d() transforms an element by resizing (scaling) it three-dimensionally from a fixed point along the x-, y-, and z-axis.
scaleZ() transforms an element by resizing (scaling) it three-dimensionally from a fixed point along the z-axis.
skew() transforms an element by slanting (skewing) it two-dimensionally around a fixed point.
The CSS transform property allows you to translate, rotate, skew, scale, or add perspective effects to HTML elements.
translate() transforms an element by repositioning (translating) it two-dimensionally.
translate3d() transforms an element by repositioning (translating) it three-dimensionally along the x-, y-, and z-axis.
translateZ() transforms an element by repositioning (translating) it three-dimensionally along the z-axis.
Declaration declares the creation of variables and functions. Initialization occurs when you assign an initial value to a variable.
every() returns true if all its calling array's items pass its function argument's test. Otherwise, it returns false.
filter() creates a new array that contains all the calling array's elements that passed the test specified by the method's argument.
find() finds the calling array's element that first passes the test specified by the method's function argument.
findIndex() finds the index of the calling array's element that first passes the test specified by the method's function argument.
Fisher-Yates shuffle is an algorithm for generating random arrangements of an array.
The forEach() method invokes its argument once for each item of an existing array.
Hoisting refers to JavaScript giving higher precedence to the declaration of variables, classes, and functions during a program's execution.
Function invocation executes a function to retrieve its value. But function calling calls for a function without retrieving its value.
A JavaScript function is an executable piece of code used to bundle a block of zero or more statements.
Lexical scope is the definition area of an expression. Therefore, an item's lexical scope is the place in which the item got created.
map() creates a new array that contains the result of invoking map()'s function argument on each item of the calling array.
A JavaScript method is a function used as the value of an object's property.
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.
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 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.
An impure function is a function that contains one or more side effects. A pure function is a function without any side effects.
JavaScript's push() method adds its arguments to the end of its calling array and returns the calling array's new length.
This article will use a simple React project to show you how to click (or double click) to edit a page's text.
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.
The rest operator is a syntax used to encase the rest of specific user-supplied values into a JavaScript array. It works with functions.
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.
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 slice() method duplicates a specified part of its calling string into a new stringβwithout altering the original string.
some() returns true if some of its calling array's items pass its function argument's test. Otherwise, it returns false.
sort() sorts its calling array's items in ascending (or descending) order and returns the sorted array.
JavaScript's splice() method alters its calling array by adding or removing a specific number of items to/from it.
The spread operator helps to expand iterables into individual elements. It is effective only when used within an array, function, or object.
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.
Test-driven development is a coding practice where you write the result you want your program to produce before creating the program.
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.
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.
A function body is where you place a sequence of statements you want to execute.
A parameter specifies the name you wish to call your function's argument.