JavaScript(or JS) enables users to create interactive webpages and is an essential code to learn for websites and web applications. Most modern websites use JavaScript.
The JavaScript Reference serves as library to define various JS elements such as arrays, date, json, math, operators and regular expressions (regexp) to help you build your website.
JavaScript Array
JavaScript Array object is used to store multiple values in a single variable.
For Example:
var phones = ["Apple", "Samsung", "Motorola"];
NAME
DESCRIPTION
CATEGORY
concat()
Concatenate. Joins two or more arrays, and returns the joined arrays.
Methods
copyWithin()
Copies array elements within the array, start and end at specified positions
Methods
entries()
Returns a key or value pair Array Iteration Object
Methods
every()
Checks if every element in an array pass a test
Methods
fill()
Fill the elements in an array with a static value
Methods
filter()
Creates a new array with every element in an array that pass a test
Methods
find()
Returns the value of the first element in an array that pass a test
Methods
findIndex()
Returns the index of the first element in an array that pass a test