Results 121 - 140 of 885


Generally speaking, a function is a "subprogram" that can be called by code external (or internal in the case of recursion) to the function. Like the program itself, a function is composed of a sequence of statements called the function body. Values can be passed to a function, and the function will return a value.
Function Functions JavaScript

Arguments object

The arguments object is an Array-like object corresponding to the arguments passed to a function.
arguments Functions JavaScript


The arguments.length property contains the number of arguments passed to the function.
arguments Functions JavaScript Property

Default parameters

Default function parameters allow formal parameters to be initialized with default values if no value or undefined is passed.
ECMAScript6 Functions JavaScript


The get syntax binds an object property to a function that will be called when that property is looked up.
ECMAScript5 ECMAScript6 Functions JavaScript


The set syntax binds an object property to a function to be called when there is an attempt to set that property.
ECMAScript5 Functions JavaScript

Standard built-in objects

This chapter documents all of JavaScript's standard, built-in objects, including their methods and properties.
JavaScript Reference Référence

get Array[@@species]

The Array[@@species] accessor property returns the Array constructor.
Array JavaScript Method Prototype


The concat() method returns a new array comprised of the array on which it is called joined with the array(s) and/or value(s) provided as arguments.
Array JavaScript Method Prototype


The length property represents an unsigned, 32-bit integer that is always numerically greater than the highest index in the array.
Array JavaScript Property


The Array.observe() method was used for asynchronously observing changes to Arrays, similar to Object.observe() for objects. It provided a stream of changes in order of occurrence. It's equivalent to Object.observe() invoked with the accept type list ["add", "update", "delete", "splice"]. However, this API has been deprecated and removed from Browsers. You can use the more general Proxy object instead.
Array JavaScript Method Obsolete


The pop() method removes the last element from an array and returns that element.
Array JavaScript Method Prototype


The Array.prototype property represents the prototype for the Array constructor.
Array JavaScript Property


The reverse() method reverses an array in place. The first array element becomes the last and the last becomes the first.
Array JavaScript Method Prototype


The shift() method removes the first element from an array and returns that element. This method changes the length of the array.
Array JavaScript Method Prototype