Results 121 - 140 of 885

Functions

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

arguments.length

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

getter

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

setter

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

Array.prototype.concat()

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

array.length

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

Array.observe()

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

Array.prototype.pop()

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

Array.prototype

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

Array.prototype.reverse()

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

Array.prototype.shift()

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