Found 513 pages:
Page | Tags and summary |
---|---|
JavaScript | JavaScript, Landing |
The JavaScript standard is ECMAScript. As of 2012, all modern browsers fully support ECMAScript 5.1. Older browsers support at least ECMAScript 3. A 6th major revision of the standard is in the works. | |
A re-introduction to JavaScript (JS Tutorial) | Intermediate, JavaScript, Tutorial |
Why a re-introduction? Because JavaScript has a reasonable claim to being the world's most misunderstood programming language. While often derided as a toy, beneath its deceptive simplicity lie some powerful language features, one that is now used by an incredible number of high-profile applications, showing that deeper knowledge of this technology is an important skill for any web or mobile developer. | |
About JavaScript | JavaScript |
JavaScript® is the Netscape-developed object scripting language used in millions of web pages and server applications worldwide. Netscape's JavaScript is a superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, with only mild differences from the published standard. | |
Enumerability and ownership of properties | JavaScript |
Enumerable properties are those which can be iterated by a for..in loop. | |
Equality comparisons and when to use them | Comparison, Guide, Intermediate, JavaScript, equality |
JavaScript provides three different value-comparison operations: strict equality using === , loose equality using == , and (new in ECMAScript 6) Object.is . The choice of which operation to use depends on what sort of comparison you're looking to perform. |
|
Getting Started (JavaScript Tutorial) | Beginner, Drawline, Function, JavaScript, Mouse Click, NeedsBeginnerUpdate, Tutorial, basics, script |
JavaScript is a powerful, complicated, and often misunderstood computer language. It enables the rapid development of applications in which users can enter data and view results easily. | |
Index | JavaScript, MDN, meta |
Found 506 pages: | |
Introduction to Object-Oriented JavaScript | Inheritance, Intermediate, JavaScript, Namespace, NeedsUpdate, OOP, Object, Object-Oriented |
JavaScript is object-oriented to its core, with powerful, flexible OOP capabilities. This article starts with an Introduction to object-oriented programming, then reviews the JavaScript object model, and finally demonstrates concepts of object-oriented programming in JavaScript. | |
JavaScript Guide | AJAX, Basic, JavaScript, JavaScript_Guide |
Next » | |
About this Guide | Beginner, Guide, JavaScript |
Editorial review completed. | |
Closures | Closure, Guide, Intermediate, JavaScript |
Closures are functions that refer to independent (free) variables. | |
Concurrency model and Event Loop | Guide, Intermediate, JavaScript |
JavaScript has a concurrency model based on an "event loop". This model is quite different than the model in other languages like C or Java. | |
Details of the object model | Guide, Intermediate, JavaScript, Object |
Technical review completed. | |
Expressions and operators | Beginner, Expressions, Guide, JavaScript, Operators |
This chapter describes JavaScript expressions and operators, including assignment, comparison, arithmetic, bitwise, logical, string, and special operators. | |
Functions | Beginner, Functions, Guide, JavaScript |
Editorial review completed. | |
Inheritance and the prototype chain | Guide, Inheritance, Intermediate, JavaScript, NeedsContent, OOP |
JavaScript is a bit confusing for developers experienced in class-based languages (like Java or C++), as it is dynamic and does not provide a class implementation (although the keyword class is a reserved keyword and cannot be used as a variable name). |
|
Inheritance revisited | Guide, Inheritance, JavaScript, NeedsUpdate, OOP |
See Inheritance and the constructor's prototype for a description of JavaScript inheritance and the constructor's prototype. | |
Iterators and generators | Guide, Intermediate, JavaScript |
Processing each of the items in a collection is a very common operation. JavaScript provides a number of ways of iterating over a collection, from simple for and for each loops to map() , filter() and array comprehensions. Iterators and Generators, introduced in JavaScript 1.7, bring the concept of iteration directly into the core language and provide a mechanism for customizing the behavior of for...in and for each loops. |
|
JavaScript Overview | Intermediate, JavaScript |
This chapter introduces JavaScript and discusses some of its fundamental concepts. | |
Predefined Core Objects | Beginner, Guide, JavaScript |
This chapter describes the predefined objects in core JavaScript: Array , Boolean , Date , Function , Math , Number , RegExp , and String . |
|
Regular Expressions | Guide, Intermediate, JavaScript, Reference, Regular Expressions, Référence |
Regular expressions are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects. These patterns are used with the exec and test methods of RegExp , and with the match , replace , search , and split methods of String . This chapter describes JavaScript regular expressions. |
|
Sameness in JavaScript | Advanced, Guide, JavaScript, Operators |
ES6 has three built-in facilities for determining whether some x and some y are "the same". They are: equality or "double equals" (== ), strict equality or "triple equals" (=== ), and Object.is . (Note that Object.is was added in ES6. Both double equals and triple equals existed prior to ES6, and their behavior remains unchanged.) |
|
Statements (Control Flow) | Beginner, Guide, JavaScript, control statements, statements |
JavaScript supports a compact set of statements, specifically control flow statements, that you can use to incorporate a great deal of interactivity in Web pages. This chapter provides an overview of these statements. | |
The Iterator protocol | ECMAScript6, Experimental, Intermediate, Iterator, JavaScript |
One addition of ECMAScript 6 is not new syntax or a new built-in, but a protocol. This protocol can be implemented by any object respecting some conventions. | |
Using native JSON | Add-ons, Advanced, Developing Mozilla, ECMAScript5, Extensions, JSON, JavaScript |
This article covers the ECMAScript 5 compliant native JSON object added in Gecko 1.9.1. For basic information on using JSON in previous versions of Firefox, see JSON. | |
Values, variables, and literals | Beginner, Guide, JavaScript |
This chapter discusses values that JavaScript recognizes and describes the fundamental building blocks of JavaScript expressions: variables, constants, and literals. | |
Working with objects | Beginner, Comparing object, Constructor, Document, Guide, JavaScript, Object |
In principle, getters and setters can be either | |
iterable | JavaScript, iterables |
In the strict sense, The Iterable in ECMAScript 6 is an interface (or in other words, a protocol), not a type of object like Array or Map . |
|
JavaScript data types and data structures | Beginner, JavaScript, Types |
Programming languages all have built-in data structures, but these often differ from one language to another. This article attempts to list the built-in data structures available in JavaScript and what properties they have; these can be used to build other data structures. When possible, comparisons with other languages are drawn. | |
JavaScript language resources | Advanced, JavaScript |
ECMAScript is the scripting language that forms the basis of JavaScript. ECMAScript is standardized by the Ecma International standards organization in the ECMA-262 and ECMA-402 specifications. The following ECMAScript standards have been approved: | |
JavaScript reference | JavaScript |
This part of the JavaScript section on MDN serves as a repository of facts about the JavaScript language. Read more about this reference. | |
About this reference | JavaScript |
The JavaScript reference serves as a repository of facts about the JavaScript language. The entire language is described here in detail. As you write JavaScript code, you'll refer to these pages often (thus the title "JavaScript reference"). If you're learning JavaScript, or need help understanding some of its capabilities or features, check out the JavaScript guide. | |
Deprecated and obsolete features | Deprecated, JavaScript, Obsolete |
This page lists features of JavaScript that are deprecated (that is, still available but planned for removal) and obsolete (that is, no longer usable). | |
Expressions and operators | JavaScript, Operators |
This chapter documents all the JavaScript language operators, expressions and keywords. | |
Arithmetic operators | JavaScript, Operator |
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value. The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), and division (/). | |
Array comprehensions | ECMAScript6, JavaScript, Operator |
The array comprehension syntax is a JavaScript expression which allows you to quickly assemble a new array based on an existing one. Comprehensions exist in many programming languages and the upcoming ECMAScript 6 standard defines array comprehensions for JavaScript. | |
Assignment operators | JavaScript, Operator |
An assignment operator assigns a value to its left operand based on the value of its right operand. | |
Bitwise operators | JavaScript, Operator |
Bitwise operators treat their operands as a sequence of 32 bits (zeros and ones), rather than as decimal, hexadecimal, or octal numbers . For example, the decimal number nine has a binary representation of 1001. Bitwise operators perform their operations on such binary representations, but they return standard JavaScript numerical values. |
|
Comma operator | JavaScript, Operator |
The comma operator evaluates each of its operands (from left to right) and returns the value of the last operand. | |
Comparison operators | JavaScript, Operator |
JavaScript has both strict and type–converting comparisons. A strict comparison (e.g., === ) is only true if the operands are of the same type. The more commonly used abstract comparison (e.g. == ) converts the operands to the same Type before making the comparison. For relational abstract comparisons (e.g., <= ), the operands are first converted to primitives, then to the same type, before comparison. |
|
Conditional (ternary) Operator | JavaScript, Operator |
The conditional (ternary) operator is the only JavaScript operator that takes three operands. This operator is frequently used as a shortcut for the if statement. |
|
Destructuring assignment | Destructuring, JavaScript, Operator |
The destructuring assignment syntax is a JavaScript expression that makes it possible to extract data from arrays or objects using a syntax that mirrors the construction of array and object literals. | |
Grouping operator | JavaScript, Operator, Primary Expressions |
The grouping operator ( ) controls the precedence of evaluation in expressions. |
|
Logical Operators | JavaScript, Operator |
Logical operators are typically used with Boolean (logical) values. When they are, they return a Boolean value. However, the && and || operators actually return the value of one of the specified operands, so if these operators are used with non-Boolean values, they may return a non-Boolean value. |
|
Operator precedence | Operator, operator details, operator precedence |
Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first. | |
Property Accessors | JavaScript, Operator |
Property accessors provide access to an object's properties by using the dot notation or the bracket notation. | |
Spread operator | Experimental, JavaScript, Operator |
The spread operator allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) are expected. | |
delete operator | JavaScript, Operator, Unary |
The delete operator removes a property from an object. |
|
function expression | Function, JavaScript, Operator, Primary Expressions |
The function keyword can be used to define a function inside an expression. |
|
get | ECMAScript5, JavaScript, Operator |
Binds an object property to a function that will be called when that property is looked up. | |
in operator | JavaScript, Operator, Relational Operators |
The in operator returns true if the specified property is in the specified object. |
|
instanceof | JavaScript, Object, Operator, Relational Operators, instanceof, prototype |
The instanceof operator tests whether an object has in its prototype chain the prototype property of a constructor. |
|
new operator | JavaScript, Left-hand-side expressions, Operator |
The new operator creates an instance of a user-defined object type or of one of the built-in object types that has a constructor function. |
|
set | ECMAScript5, JavaScript, Operator |
Binds an object property to a function to be called when there is an attempt to set that property. | |
this | JavaScript, Operator, Primary Expressions |
A function's this keyword behaves a little differently in JavaScript compared to other languages. It also has some differences between strict mode and non-strict mode. |
|
typeof | JavaScript, Operator, Unary |
The typeof operator returns a string indicating the type of the unevaluated operand. |
|
void operator | JavaScript, Operator, Unary |
The void operator evaluates the given expression and then returns undefined . |
|
yield | ECMAScript6, Experimental, Expérimental, Generators, Iterators, JavaScript, JavaScript Reference, NeedsExample, Operator |
The yield keyword is used to pause and resume a generator function. |
|
Functions and function scope | Function, Guide, NeedsHelp, function scope |
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 can return a value. | |
Arrow functions | JavaScript, Method |
An arrow function expression has a shorter syntax compared to function expressions and lexically binds the this value. Arrow functions are always anonymous. |
|
Rest parameters | JavaScript, JavaScript Reference, Rest parameters |
Representation of an indefinite number of arguments as an array. | |
arguments | JavaScript, JavaScript Reference |
An Array -like object corresponding to the arguments passed to a function. |
|
arguments.callee | JavaScript, JavaScript Reference, Reference, Référence |
Technical review completed. | |
arguments.length | arguments |
Specifies the number of arguments passed to the function. | |
caller | JavaScript, Obsolete, Property |
Specifies the function that invoked the currently executing function. | |
default parameters | ECMAScript6, Experimental, Expérimental, JavaScript, Operator |
Allow formal parameters to be initialized with default values if no value or undefined is passed. |
|
JavaScript Methods Index | JavaScript |
abs: Returns the absolute value of a number. | |
JavaScript Properties Index | JavaScript |
arguments: An array-like object corresponding to the arguments passed to a function. | |
Lexical grammar | JavaScript, Lexical Grammar |
This section describes JavaScript's lexical grammar. The source text of ECMAScript scripts gets scanned from left to right and is converted into a sequence of input elements which are tokens, control characters, line terminators, comments or white space. ECMAScript also defines certain keywords and literals and has rules for automatic insertion of semicolons to end statements. | |
Scope Cheatsheet | hoisting, scope, variables |
JavaScript with Mozilla extensions has both function-scoped var s and block-scoped let s. Along with hoisting and dynamic behavior, scope in JavaScript is sometimes surprising. |
|
Standard built-in objects | JavaScript |
This chapter documents all the JavaScript standard built-in objects, along with their methods and properties. | |
Array | Array, JavaScript |
The JavaScript Array global object is a constructor for arrays, which are high-level, list-like objects. |
|
Array.from() | Array, ECMAScript6, Experimental, Expérimental, JavaScript, Method, from |
The Array.from() method creates a new Array instance from an array-like or iterable object. |
|
Array.isArray() | Array, ECMAScript5, JavaScript, Method |
The Array.isArray() method returns true if an object is an array, false if it is not. |
|
Array.length | Array, JavaScript, Property |
The length property represents an unsigned, 32-bit integer that specifies the number of elements in an array. |
|
Array.of() | Array, ECMAScript6, Experimental, Expérimental, JavaScript, Method |
The Array.of() method creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments. |
|
Array.prototype | Array, JavaScript, Property |
The Array.prototype property represents the prototype for the Array constructor. |
|
Array.prototype.concat() | Array, JavaScript, Method, prototype |
The concat() method returns a new array comprised of this array joined with other array(s) and/or value(s). |
|
Array.prototype.copyWithin() | Array, ECMAScript6, Experimental, Expérimental, JavaScript, Method, prototype |
The copyWithin() method copies the sequence of array elements within the array to the position starting at target . The copy is taken from the index positions of the second and third arguments start and end . The end argument is optional and defaults to the length of the array. |
|
Array.prototype.entries() | Array, ECMAScript6, Experimental, JavaScript, Method, prototype |
The entries() method returns a new Array Iterator object that contains the key/value pairs for each index in the array. |
|
Array.prototype.every() | Array, ECMAScript5, JavaScript, JavaScript 1.6, Method, prototype |
The every() method tests whether all elements in the array pass the test implemented by the provided function. |
|
Array.prototype.fill() | Array, ECMAScript6, Experimental, Expérimental, JavaScript, Method, prototype |
The fill() method fills all the elements of an array from a start index to an end index with a static value. |
|
Array.prototype.filter() | Array, ECMAScript5, JavaScript, JavaScript 1.6, Method, prototype |
The filter() method creates a new array with all elements that pass the test implemented by the provided function. |
|
Array.prototype.find() | Array, ECMAScript6, Experimental, Expérimental, JavaScript, Method, prototype |
The find() method returns a value in the array, if an element in the array satisfies the provided testing function. Otherwise undefined is returned. |
|
Array.prototype.findIndex() | Array, ECMAScript6, Experimental, Expérimental, JavaScript, Method, prototype |
The findIndex() method returns an index in the array, if an element in the array satisfies the provided testing function. Otherwise -1 is returned. |
|
Array.prototype.forEach() | Array, ECMAScript5, JavaScript, JavaScript 1.6, Method, prototype |
The forEach() method executes a provided function once per array element. |
|
Array.prototype.indexOf() | Array, JavaScript, Method, prototype |
The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present. |
|
Array.prototype.join() | Array, JavaScript, Method, prototype |
The join() method joins all elements of an array into a string. |
|
Array.prototype.keys() | Array, ECMAScript6, Experimental, Expérimental, JavaScript, Method, prototype |
The keys() method returns a new Array Iterator that contains the keys for each index in the array. |
|
Array.prototype.lastIndexOf() | Array, ECMAScript5, JavaScript, Method, prototype |
The lastIndexOf() method returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex . |
|
Array.prototype.map() | Array, ECMAScript5, JavaScript, JavaScript 1.6, Method, prototype |
The map() method creates a new array with the results of calling a provided function on every element in this array. |
|
Array.prototype.pop() | Array, JavaScript, Method, prototype |
The pop() method removes the last element from an array and returns that element. |
|
Array.prototype.push() | Array, JavaScript, Method, Reference, Référence, prototype |
The push() method adds one or more elements to the end of an array and returns the new length of the array. |
|
Array.prototype.reduce() | Array, ECMAScript5, JavaScript, JavaScript 1.8, Method, prototype |
The reduce() method applies a function against an accumulator and each value of the array (from left-to-right) has to reduce it to a single value. |
|
Array.prototype.reduceRight() | Array, ECMAScript5, JavaScript, JavaScript 1.8, Method, prototype |
The reduceRight() method applies a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value. |
|
Array.prototype.reverse() | Array, JavaScript, Method, prototype |
The reverse() method reverses an array in place. The first array element becomes the last and the last becomes the first. |
|
Array.prototype.shift() | 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.prototype.slice() | Array, JavaScript, Method, prototype |
The slice() method returns a shallow copy of a portion of an array into a new array object. |
|
Array.prototype.some() | Array, ECMAScript5, JavaScript, JavaScript 1.6, Method, prototype |
The some() method tests whether some element in the array passes the test implemented by the provided function. |
|
Array.prototype.sort() | Array, JavaScript, Method, prototype |
The sort() method sorts the elements of an array in place and returns the array. The sort is not necessarily stable. The default sort order is according to string Unicode code points. |
|
Array.prototype.splice() | Array, JavaScript, Method, prototype |
The splice() method changes the content of an array, adding new elements while removing old elements. |
|
Array.prototype.toLocaleString() | Array, Internationalization, JavaScript, Method, prototype |
The toLocaleString() method returns a string representing the elements of the array. The elements are converted to Strings using their toLocaleString methods and these Strings are separated by a locale-specific String (such as a comma “,”). |
|
Array.prototype.toSource() | Array, JavaScript, Method, Non-standard, prototype |
The toSource() method returns a string representing the source code of the array. |
|
Array.prototype.toString() | Array, JavaScript, Method, prototype |
The toString() method returns a string representing the specified array and its elements. |
|
Array.prototype.unshift() | Array, JavaScript, Method, prototype |
The unshift() method adds one or more elements to the beginning of an array and returns the new length of the array. |
|
ArrayBuffer | ArrayBuffer, Constructor, JavaScript, TypedArrays |
The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You can not directly manipulate the contents of an ArrayBuffer ; instead, you create an one of the typed array objects or a DataView object which represents the buffer in a specific format, and use that to read and write the contents of the buffer. |
|
ArrayBuffer.isView() | ArrayBuffer, JavaScript, Method, TypedArrays |
The ArrayBuffer.isView() method returns true if arg is a view one of the ArrayBuffer views, such as typed array objects or a DataView ; false otherwise. |
|
ArrayBuffer.prototype | ArrayBuffer, JavaScript, Property |
The ArrayBuffer.prototype property represents the prototype for the ArrayBuffer object. |
|
ArrayBuffer.prototype.byteLength | ArrayBuffer, JavaScript, Property, prototype |
The byteLength accessor property represents the length of an ArrayBuffer in bytes. |
|
ArrayBuffer.prototype.slice() | ArrayBuffer, JavaScript, Method, NeedsExample, prototype |
The slice() method returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer 's bytes from begin , inclusive, up to end , exclusive. |
|
Boolean | Boolean, Constructor, JavaScript |
The Boolean object is an object wrapper for a boolean value. |
|
Boolean.prototype | Boolean, JavaScript, Property |
The Boolean.prototype property represents the prototype for the Boolean constructor. |
|
Boolean.prototype.toSource() | Boolean, JavaScript, Method, Non-standard, prototype |
The toSource() method returns a string representing the source code of the object. |
|
Boolean.prototype.toString() | Boolean, JavaScript, Method, prototype |
The toString() method returns a string representing the specified Boolean object. |
|
Boolean.prototype.valueOf() | Boolean, JavaScript, Method, prototype |
The valueOf() method returns the primitive value of a Boolean object. |
|
DataView | Constructor, DataView, JavaScript, TypedArrays |
The DataView view provides a low-level interface for reading data from and writing it to an ArrayBuffer . |
|
DataView.prototype | DataView, JavaScript, Property |
The DataView .prototype property represents the prototype for the DataView object. |
|
DataView.prototype.buffer | DataView, JavaScript, Property, TypedArrays, prototype |
The buffer accessor property represents the ArrayBuffer referenced by the DataView at construction time. |
|
DataView.prototype.byteLength | DataView, JavaScript, Property, TypedArrays, prototype |
The byteLength accessor property represents the length (in bytes) of this view from the start of its ArrayBuffer . |
|
DataView.prototype.byteOffset | DataView, JavaScript, Property, TypedArrays, prototype |
The byteOffset accessor property represents the offset (in bytes) of this view from the start of its ArrayBuffer . |
|
DataView.prototype.getInt16() | DataView, JavaScript, Method, TypedArrays, prototype |
The getInt16() method gets a signed 16-bit integer (short) at the specified byte offset from the start of the DataView . |
|
DataView.prototype.getInt8() | DataView, JavaScript, Method, TypedArrays, prototype |
The getInt8() method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the DataView . |
|
DataView.prototype.getUint8() | DataView, JavaScript, Method, TypedArrays, prototype |
The getUint8() method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the DataView . |
|
Date | Date, JavaScript |
Creates a JavaScript Date instance that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds since 1 January, 1970 UTC. |
|
Date.UTC() | Date, JavaScript, Method, Reference, Référence |
The Date.UTC() method accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time. |
|
Date.now() | Date, JavaScript, Method, Reference, Référence |
The Date.now() method returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC. |
|
Date.parse() | Date, JavaScript, Method |
The Date.parse() method parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC. |
|
Date.prototype | Date, JavaScript, Property |
The Date.prototype property represents the prototype for the Date constructor. |
|
Date.prototype.getDate() | Date, JavaScript, Method, prototype |
The getDate() method returns the day of the month for the specified date according to local time. |
|
Date.prototype.getDay() | Date, JavaScript, Method, prototype |
The getDay() method returns the day of the week for the specified date according to local time, where 0 represents Sunday. |
|
Date.prototype.getFullYear() | Date, JavaScript, Method, prototype |
The getFullYear() method returns the year of the specified date according to local time. |
|
Date.prototype.getHours() | Date, JavaScript, Method, prototype |
The getHours() method returns the hour for the specified date, according to local time. |
|
Date.prototype.getMilliseconds() | Date, JavaScript, Method, prototype |
The getMilliseconds() method returns the milliseconds in the specified date according to local time. |
|
Date.prototype.getMinutes() | Date, JavaScript, Method, prototype |
The getMinutes() method returns the minutes in the specified date according to local time. |
|
Date.prototype.getMonth() | Date, JavaScript, Method, prototype |
The getMonth() method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year). |
|
Date.prototype.getSeconds() | Date, JavaScript, Method, prototype |
The getSeconds() method returns the seconds in the specified date according to local time. |
|
Date.prototype.getTime() | Date, JavaScript, Method, prototype |
The getTime() method returns the numeric value corresponding to the time for the specified date according to universal time. |
|
Date.prototype.getTimezoneOffset() | Date, JavaScript, Method, prototype |
The getTimezoneOffset() method returns the time-zone offset from UTC, in minutes, for the current locale. |
|
Date.prototype.getUTCDate() | Date, JavaScript, Method, prototype |
The getUTCDate() method returns the day (date) of the month in the specified date according to universal time. |
|
Date.prototype.getUTCDay() | Date, JavaScript, Method, prototype |
The getUTCDay() method returns the day of the week in the specified date according to universal time, where 0 represents Sunday. |
|
Date.prototype.getUTCFullYear() | Date, JavaScript, Method, prototype |
The getUTCFullYear() method returns the year in the specified date according to universal time. |
|
Date.prototype.getUTCHours() | Date, JavaScript, Method, prototype |
The getUTCHours() method returns the hours in the specified date according to universal time. |
|
Date.prototype.getUTCMilliseconds() | Date, JavaScript, Method, prototype |
The getUTCMilliseconds() method returns the milliseconds in the specified date according to universal time. |
|
Date.prototype.getUTCMinutes() | Date, JavaScript, Method, prototype |
The getUTCMinutes() method returns the minutes in the specified date according to universal time. |
|
Date.prototype.getUTCMonth() | Date, JavaScript, Method, prototype |
The getUTCMonth() returns the month of the specified date according to universal time. |
|
Date.prototype.getUTCSeconds() | Date, JavaScript, Method, prototype |
The getUTCSeconds() method returns the seconds in the specified date according to universal time. |
|
Date.prototype.getYear() | Date, Deprecated, JavaScript, Method, prototype |
The getYear() method returns the year in the specified date according to local time. Because getYear does not return full years ("year 2000 problem"), it is no longer used and has been replaced by the getFullYear method. |
|
Date.prototype.setDate() | Date, JavaScript, Method, prototype |
The setDate() method sets the day of the month for a specified date according to local time. |
|
Date.prototype.setFullYear() | Date, JavaScript, Method, prototype |
The setFullYear() method sets the full year for a specified date according to local time. |
|
Date.prototype.setHours() | Date, JavaScript, Method, prototype |
The setHours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance. |
|
Date.prototype.setMilliseconds() | Date, JavaScript, Method, prototype |
The setMilliseconds() method sets the milliseconds for a specified date according to local time. |
|
Date.prototype.setMinutes() | Date, JavaScript, Method, prototype |
The setMinutes() method sets the minutes for a specified date according to local time. |
|
Date.prototype.setMonth() | Date, JavaScript, Method, prototype |
The setMonth() method sets the month for a specified date according to local time. |
|
Date.prototype.setSeconds() | Date, JavaScript, Method, prototype |
The setSeconds() method sets the seconds for a specified date according to local time. |
|
Date.prototype.setTime() | Date, JavaScript, Method, prototype |
The setTime() method sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC. |
|
Date.prototype.setUTCDate() | Date, JavaScript, Method, prototype |
The setUTCDate() method sets the day of the month for a specified date according to universal time. |
|
Date.prototype.setUTCFullYear() | Date, JavaScript, Method, prototype |
The setUTCFullYear() method sets the full year for a specified date according to universal time. |
|
Date.prototype.setUTCHours() | Date, JavaScript, Method, prototype |
The setUTCHours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance. |
|
Date.prototype.setUTCMilliseconds() | Date, JavaScript, Method, prototype |
The setUTCMilliseconds() method sets the milliseconds for a specified date according to universal time. |
|
Date.prototype.setUTCMinutes() | Date, JavaScript, Method, prototype |
The setUTCMinutes() method sets the minutes for a specified date according to universal time. |
|
Date.prototype.setUTCMonth() | Date, JavaScript, Method, prototype |
The setUTCMonth() method sets the month for a specified date according to universal time. |
|
Date.prototype.setUTCSeconds() | Date, JavaScript, Method, prototype |
The setUTCSeconds() method sets the seconds for a specified date according to universal time. |
|
Date.prototype.setYear() | Date, Deprecated, JavaScript, Method, prototype |
The setYear() method sets the year for a specified date according to local time. Because setYear does not set full years ("year 2000 problem"), it is no longer used and has been replaced by the setFullYear method. |
|
Date.prototype.toDateString() | Date, JavaScript, Method, prototype |
The toDateString() method returns the date portion of a Date object in human readable form in American English. |
|
Date.prototype.toGMTString() | Date, Deprecated, JavaScript, Method, prototype |
The toGMTString() method converts a date to a string, using Internet GMT conventions. The exact format of the value returned by toGMTString varies according to the platform and browser, in general it should represent a human readable date string. |
|
Date.prototype.toISOString() | Date, JavaScript, Method, prototype |
The toISOString() method returns a string in ISO format (ISO 8601 Extended Format), which can be described as follows: YYYY-MM-DDTHH:mm:ss.sssZ. The timezone is always UTC as denoted by the suffix "Z". |
|
Date.prototype.toJSON() | Date, JavaScript, Method, prototype |
The toJSON() method returns a JSON representation of the Date object. |
|
Date.prototype.toLocaleDateString() | Date, Internationalization, JavaScript, Method, prototype |
The toLocaleDateString() method returns a string with a language sensitive representation of the date portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and allow to customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent. |
|
Date.prototype.toLocaleFormat() | Date, JavaScript, Method, Non-standard, Reference, Référence, prototype |
The non-standard toLocaleFormat() method converts a date to a string using the specified formatting. DateTimeFormat is an alternative to format dates in a standards-compliant way. See also the newer version of Date.prototype.toLocaleDateString() . |
|
Date.prototype.toLocaleString() | Date, Internationalization, JavaScript, Method, prototype |
The toLocaleString() method returns a string with a language sensitive representation of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent. |
|
Date.prototype.toLocaleTimeString() | Date, Internationalization, JavaScript, Method, prototype |
The toLocaleTimeString() method returns a string with a language sensitive representation of the time portion of this date. The new locales and options arguments let applications specify the language whose formatting conventions should be used and customize the behavior of the function. In older implementations, which ignore the locales and options arguments, the locale used and the form of the string returned are entirely implementation dependent. |
|
Date.prototype.toSource() | Date, JavaScript, Method, Non-standard, prototype |
The toSource() method returns a string representing the source code of the object. |
|
Date.prototype.toString() | Date, JavaScript, Method, prototype |
The toString() method returns a string representing the specified Date object. |
|
Date.prototype.toTimeString() | Date, JavaScript, Method, Reference, Référence, prototype |
The toTimeString() method returns the time portion of a Date object in human readable form in American English. |
|
Date.prototype.toUTCString() | Date, JavaScript, Method, prototype |
The toUTCString() method converts a date to a string, using the UTC time zone. |
|
Date.prototype.valueOf() | Date, JavaScript, Method, prototype |
The valueOf() method returns the primitive value of a Date object. |
|
Error | Error, JavaScript |
The Error constructor creates an error object. Instances of Error objects are thrown when runtime errors occur. The Error object can also be used as a base objects for user-defined exceptions. See below for standard built-in error types. |
|
Error.prototype | Error, JavaScript, Property |
The Error.prototype property represents the prototype for the Error constructor. |
|
Error.prototype.columnNumber | Error, JavaScript, Non-standard, Property, prototype |
The columnNumber property contains the column number in the line of the file that raised this error. |
|
Error.prototype.fileName | Error, JavaScript, Non-standard, Property, prototype |
The fileName property contains the path to the file that raised this error. |
|
Error.prototype.lineNumber | Error, JavaScript, Non-standard, Property, prototype |
The lineNumber property contains the line number in the file that raised this error. |
|
Error.prototype.message | Error, JavaScript, Property, prototype |
The message property is a human-readable description of the error. |
|
Error.prototype.name | Error, JavaScript, Property, prototype |
The name property represents a name for the type of error. The initial value is "Error". |
|
Error.prototype.stack | Error, JavaScript, Non-standard, Property, prototype |
The non-standard stack property of Error objects offer a trace of which functions were called, in what order, from which line and file, and with what arguments. The stack string proceeds from the most recent calls to earlier ones, leading back to the original global scope call. |
|
Error.prototype.toSource() | Error, JavaScript, Method, Non-standard, prototype |
The toSource() method returns code that could eval to the same error. |
|
Error.prototype.toString() | Error, JavaScript, Method, prototype |
The toString() method returns a string representing the specified Error object. |
|
EvalError | Error, EvalError, JavaScript, NeedsExample |
The EvalError object indicates an error regarding the global eval() function. |
|
EvalError.prototype | Error, EvalError, JavaScript, Property |
The EvalError.prototype property represents the prototype of the EvalError constructor. |
|
Function | Constructor, Function, JavaScript |
The Function constructor creates a new Function object. In JavaScript every function is actually a Function object. |
|
Function.arguments | Deprecated, Function, JavaScript, Property, arguments |
The function.arguments property refers to an an array-like object corresponding to the arguments passed to a function. Use the simple variable arguments instead. |
|
Function.arity | Function, JavaScript, Obsolete, Property, Unimplemented |
The arity property used to return the number of arguments expected by the function, however, it no longer exists and has been replaced by the Function.prototype.length property. |
|
Function.caller | Function, JavaScript, Non-standard, Property |
The function.caller property returns the function that invoked the specified function. |
|
Function.displayName | Function, JavaScript, Non-standard, Property |
The function.displayName property returns the display name of the function. |
|
Function.length | Function, JavaScript, Property |
The length property specifies the number of arguments expected by the function. |
|
Function.name | ECMAScript6, Experimental, Function, JavaScript, Property |
The function.name property returns the name of the function. |
|
Function.prototype | Function, JavaScript, Property |
The Function.prototype property represents the Function prototype object. |
|
Function.prototype.apply() | Function, JavaScript, Method |
The apply() method calls a function with a given this value and arguments provided as an array (or an array-like object). |
|
Function.prototype.bind() | ECMAScript5, Function, JavaScript, Method |
The bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called. |
|
Function.prototype.call() | Function, JavaScript, Method |
The call() method calls a function with a given this value and arguments provided individually. |
|
Function.prototype.isGenerator() | Function, JavaScript, Method, Non-standard |
The isGenerator() method determines whether or not a function is a generator. |
|
Function.prototype.toSource() | Function, JavaScript, Method, Non-standard |
The toSource() method returns a string representing the source code of the object. |
|
Function.prototype.toString() | Function, JavaScript, Method |
The toString() method returns a string representing the source code of the function. |
|
Generator | JavaScript, JavaScript Reference, NeedsContent |
Lets you work with generators. | |
Infinity | JavaScript |
The global Infinity property is a numeric value representing infinity. |
|
InternalError | Error, InternalError, JavaScript, NeedsExample, Non-standard |
The InternalError object indicates an error that occured internally in the JavaScript engine. For example: "InternalError: too much recursion". |
|
InternalError.prototype | Error, InternalError, JavaScript, Non-standard, Property |
The InternalError.prototype property represents the prototype of the InternalError constructor. |
|
Intl | Internationalization, JavaScript |
The Intl object is the namespace for the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting, and date and time formatting. The constructors for Collator , NumberFormat , and DateTimeFormat objects are properties of the Intl object. This page documents these properties as well as functionality common to the internationalization constructors and other language sensitive functions. |
|
Intl.Collator | Collator, Internationalization, JavaScript |
The Intl.Collator object is a constructor for collators, objects that enable language sensitive string comparison. |
|
Intl.Collator.prototype | Collator, Internationalization, JavaScript, Property |
The Intl.Collator.prototype property represents the prototype object for the Intl.Collator constructor. |
|
Intl.Collator.prototype.compare | Collator, Internationalization, JavaScript, Property, prototype |
The Intl.Collator.prototype.compare property returns a getter function that compares two strings according to the sort order of this Collator object. |
|
Intl.Collator.prototype.resolvedOptions() | Collator, Internationalization, JavaScript, Method, NeedsExample, prototype |
The Intl.Collator.prototype.resolvedOptions() method returns a new object with properties reflecting the locale and collation options computed during initialization of this Collator object. |
|
Intl.Collator.supportedLocalesOf() | Collator, Internationalization, JavaScript, Method |
The Intl.Collator.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale. |
|
Intl.DateTimeFormat | DateTimeFormat, Internationalization, JavaScript |
The Intl.DateTimeFormat object is a constructor for objects that enable language sensitive date and time formatting. |
|
Intl.DateTimeFormat.prototype | DateTimeFormat, Internationalization, JavaScript, Property |
The Intl.DateTimeFormat.prototype property represents the prototype object for the Intl.DateTimeFormat constructor. |
|
Intl.DateTimeFormat.prototype.format | DateTimeFormat, Internationalization, JavaScript, Property, prototype |
The format property returns a getter function that formats a date according to the locale and formatting options of this DateTimeFormat object. |
|
Intl.DateTimeFormat.prototype.resolvedOptions() | DateTimeFormat, Internationalization, JavaScript, Method, NeedsExample |
The Intl.DateTimeFormat.prototype.resolvedOptions() method returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of this DateTimeFormat object. |
|
Intl.DateTimeFormat.supportedLocalesOf() | DateTimeFormat, Internationalization, JavaScript, Method |
The Intl.DateTimeFormat.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale. |
|
Intl.NumberFormat | Internationalization, JavaScript, NumberFormat |
The Intl.NumberFormat object is a constructor for objects that enable language sensitive number formatting. |
|
Intl.NumberFormat.prototype | Internationalization, JavaScript, NumberFormat, Property |
The Intl.NumberFormat.prototype property represents the prototype object for the Intl.NumberFormat constructor. |
|
Intl.NumberFormat.prototype.format | Internationalization, JavaScript, NumberFormat, Property, prototype |
The Intl.NumberFormat.prototype.format property returns a getter function that formats a number according to the locale and formatting options of this NumberFormat object. |
|
Intl.NumberFormat.prototype.resolvedOptions() | Internationalization, JavaScript, Method, NeedsExample, NumberFormat, prototype |
The Intl.NumberFormat.prototype.resolvedOptions() method returns a new object with properties reflecting the locale and number formatting options computed during initialization of this NumberFormat object. |
|
Intl.NumberFormat.supportedLocalesOf() | Internationalization, JavaScript, Method, NumberFormat |
The Intl.NumberFormat.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in number formatting without having to fall back to the runtime's default locale. |
|
Iterator | JavaScript, NeedsContent, Reference, Référence |
The Iterator function. | |
JSON | JSON, JavaScript, Object |
The JSON object contains methods for parsing JavaScript Object Notation (JSON) and converting values to JSON. It can't be called or constructed, and aside from its two method properties it has no interesting functionality of its own. |
|
JSON.parse() | ECMAScript5, JSON, JavaScript, Method |
The JSON.parse() method parses a string as JSON, optionally transforming the value produced by parsing. |
|
JSON.stringify() | JSON, JavaScript, Method, stringify |
The JSON.stringify() method converts a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified. |
|
Map | ECMAScript6, Experimental, Expérimental, JavaScript, map |
The Map object is a simple key/value map. Any value (both objects and primitive values) may be used as either a key or a value. |
|
Map.prototype | ECMAScript6, Experimental, Expérimental, JavaScript, Property, map |
The Map .prototype property represents the prototype for the Map constructor. |
|
Map.prototype.clear() | ECMAScript6, Experimental, JavaScript, Method, map, prototype |
The clear() method removes all elements from a Map object. |
|
Map.prototype.delete() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, map, prototype |
The delete() method removes the specified element from a Map object. |
|
Map.prototype.entries() | ECMAScript6, Experimental, JavaScript, Method, map, prototype |
The entries() method returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order. |
|
Map.prototype.forEach() | ECMAScript6, Experimental, JavaScript, Method, map, prototype |
The forEach() method executes a provided function once per each key/value pair in the Map object, in insertion order. |
|
Map.prototype.get() | ECMAScript6, Experimental, JavaScript, Method, map, prototype |
The get() method returns a specified element from a Map object. |
|
Map.prototype.has() | ECMAScript6, Experimental, JavaScript, Method, map, prototype |
The has() method returns a boolean indicating whether an element with the specified key exists or not. |
|
Map.prototype.keys() | ECMAScript6, Experimental, JavaScript, Method, map, prototype |
The keys() method returns a new Iterator object that contains the keys for each element in the Map object in insertion order. |
|
Map.prototype.set() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, map, prototype |
The set() method adds a new element with a specified key and value to a Map object. |
|
Map.prototype.size | ECMAScript6, Experimental, JavaScript, Property, map |
The size accessor property returns the number of elements in a Map object. |
|
Map.prototype.values() | ECMAScript6, Experimental, JavaScript, Method, map, prototype |
The values() method returns a new Iterator object that contains the values for each element in the Map object in insertion order. |
|
Math | JavaScript, Math |
Math is a built-in object that has properties and methods for mathematical constants and functions. Not a function object. | |
Math.E | JavaScript, Math, Property |
The Math.E property represents the base of natural logarithms, e, approximately 2.718. |
|
Math.LN10 | JavaScript, Math, Property |
The Math.LN10 property represents the natural logarithm of 10, approximately 2.302: |
|
Math.LN2 | JavaScript, Math, Property |
The Math.LN2 property represents the natural logarithm of 2, approximately 0.693: |
|
Math.LOG10E | JavaScript, Math, Property |
The Math.LOG10E property represents the base 10 logarithm of e, approximately 0.434: |
|
Math.LOG2E | JavaScript, Math, Property |
The Math.LOG2E property represents the base 2 logarithm of e, approximately 1.442: |
|
Math.PI | JavaScript, Math, Property |
The Math.PI property represents the ratio of the circumference of a circle to its diameter, approximately 3.14159: |
|
Math.SQRT1_2 | JavaScript, Math, Property |
The Math.SQRT1_2 property represents the square root of 1/2 which is approximately 0.707: |
|
Math.SQRT2 | JavaScript, Math, Property |
The Math.SQRT2 property represents the square root of 2, approximately 1.414: |
|
Math.abs() | JavaScript, Math, Method |
The Math.abs(x) function returns the absolute value of a number "x". |
|
Math.acos() | JavaScript, Math, Method |
The Math.acos() function returns the arccosine (in radians) of a number, that is |
|
Math.acosh() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.acosh() function returns the hyperbolic arccosine of a number |
|
Math.asin() | JavaScript, Math, Method |
The Math.asin() function returns the arcsine (in radians) of a number, that is |
|
Math.asinh() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.asinh() function returns the hyperbolic arcsine of a number, that is |
|
Math.atan() | JavaScript, Math, Method |
The Math.atan() function returns the arctangent (in radians) of a number, that is |
|
Math.atan2() | JavaScript, Math, Method |
The Math.atan2() function returns the arctangent of the quotient of its arguments. |
|
Math.atanh() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.atanh() function returns the hyperbolic arctangent of a number, that is |
|
Math.cbrt() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.cbrt() function returns the cube root of a number, that is |
|
Math.ceil() | JavaScript, Math, Method |
The Math.ceil(x) function returns the smallest integer greater than or equal to a number "x". |
|
Math.clz32() | ECMAScript6, Experimental, JavaScript, Math, Method |
The Math.clz32() function returns the number of leading zero bits in the 32-bit binary representation of a number. |
|
Math.cos() | JavaScript, Math, Method |
The Math.cos() function returns the cosine of a number. |
|
Math.cosh() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.cosh() function returns the hyperbolic cosine of a number, that can be expressed using the constant e: |
|
Math.exp() | JavaScript, Math, Method |
The Math.exp() function returns ex , where x is the argument, and e is Euler's constant, the base of the natural logarithms. |
|
Math.expm1() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.expm1() function returns ex - 1, where x is the argument, and e the base of the natural logarithms. |
|
Math.floor() | JavaScript, Math, Method |
The Math.floor(x) function returns the largest integer less than or equal to a number "x". |
|
Math.fround() | Experimental, JavaScript, Math, Method |
The Math.fround() function returns the nearest single precision float representation of a number. |
|
Math.hypot() | Experimental, Expérimental, JavaScript, Math, Method |
Technical review completed. | |
Math.imul() | Experimental, JavaScript, Math, Method, Reference, Référence |
The Math.imul() function returns the result of the C-like 32-bit multiplication of the two parameters. |
|
Math.log() | JavaScript, Math, Method |
The Math.log() function returns the natural logarithm (base e ) of a number, that is |
|
Math.log10() | Experimental, JavaScript, Math, Method |
The Math.log10() function returns the base 10 logarithm of a number, that is |
|
Math.log1p() | Experimental, JavaScript, Math, Method |
The Math.log1p() function returns the natural logarithm (base e ) of 1 + a number, that is |
|
Math.log2() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.log2() function returns the base 2 logarithm of a number, that is |
|
Math.max() | JavaScript, Math, Method |
The Math.max() function returns the largest of zero or more numbers. |
|
Math.min() | JavaScript, Math, Method |
The Math.min() function returns the smallest of zero or more numbers. |
|
Math.pow() | JavaScript, Math, Method |
The Math.pow() function returns the base to the exponent Power, that is, baseexponent . |
|
Math.random() | JavaScript, Math, Method |
The Math.random() function returns a floating-point, pseudo-random number in the range [0, 1) that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range. |
|
Math.round() | JavaScript, Math, Method |
The Math.round() function returns the value of a number rounded to the nearest integer. |
|
Math.sign() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.sign() function returns the sign of a number, indicating whether the number is positive, negative or zero. |
|
Math.sin() | JavaScript, Math, Method |
The Math.sin() function returns the sine of a number. |
|
Math.sinh() | Experimental, Expérimental, JavaScript, Math, Method |
The Math.sinh() function returns the hyperbolic sine of a number, that can be expressed using the constant e: |
|
Math.sqrt() | JavaScript, Math, Method |
The Math.sqrt() function returns the square root of a number, that is |
|
Math.tan() | JavaScript, Math, Method |
The Math.tan() function returns the tangent of a number. |
|
Math.tanh() | Experimental, Expérimental, JavaScript, Math, Method |
Technical review completed. | |
Math.trunc() | Experimental, JavaScript, Math, Method |
The Math.trunc() function returns the integral part of a number by removing any fractional digits. It does not round any numbers. The function can be expressed with the floor() and ceil() function: |
|
NaN | JavaScript |
The global NaN property is a value representing Not-A-Number. |
|
Number | JavaScript, Number, Reference, Référence |
The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor. |
|
Number.EPSILON | Experimental, Expérimental, JavaScript, Number, Property |
The Number.EPSILON property represents the difference between one and the smallest value greater than one that can be represented as a Number . |
|
Number.MAX_SAFE_INTEGER | ECMAScript6, Experimental, Expérimental, JavaScript, Number, Property |
The Number.MAX_SAFE_INTEGER constant represents the maximum safe integer in JavaScript (253 -1). |
|
Number.MAX_VALUE | JavaScript, Number, Property |
The Number.MAX_VALUE property represents the maximum numeric value representable in JavaScript. |
|
Number.MIN_SAFE_INTEGER | ECMAScript6, Experimental, Expérimental, JavaScript, Number, Property |
The Number.MIN_SAFE_INTEGER constant represents the minimum safe integer in JavaScript (-(253 -1)). |
|
Number.MIN_VALUE | JavaScript, Number, Property |
The Number.MIN_VALUE property represents the smallest positive numeric value representable in JavaScript. |
|
Number.NEGATIVE_INFINITY | JavaScript, Number, Property |
The Number.NEGATIVE_INFINITY property represents the negative Infinity value. |
|
Number.NaN | JavaScript, Number, Property |
The Number.NaN property represents Not-A-Number. Equivalent of NaN . |
|
Number.POSITIVE_INFINITY | JavaScript, Number, Property |
The Number.POSITIVE_INFINITY property represents the positive Infinity value. |
|
Number.isFinite() | Experimental, Expérimental, JavaScript, Method, Number, Reference, Référence |
The Number.isFinite() method determines whether the passed value is finite. |
|
Number.isInteger() | Experimental, Expérimental, JavaScript, Method, Number, Reference, Référence |
The Number.isInteger() method determines whether the passed value is an integer. |
|
Number.isNaN() | Experimental, JavaScript, Method, Number |
The Number.isNaN() method determines whether the passed value is NaN . More robust version of the original global isNaN . |
|
Number.isSafeInteger() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Number |
The Number.isSafeInteger() method determines whether the provided value is a number that is a safe integer. A safe integer is an integer that |
|
Number.parseFloat() | Experimental, JavaScript, Method, Number |
The Number.parseFloat() method parses a string argument and returns a floating point number. This method behaves identical to the global function parseFloat and is part of ECMAScript 6 (its purpose is modularization of globals). |
|
Number.parseInt() | Experimental, JavaScript, Method, Number |
The Number.parseInt() method parses a string argument and returns an integer of the specified radix or base. This method behaves identical to the global function parseInt and is part of ECMAScript 6 (its purpose is modularization of globals). |
|
Number.prototype | JavaScript, Number, Property |
The Number.prototype property represents the prototype for the Number constructor. |
|
Number.prototype.toExponential() | JavaScript, Method, Number, prototype |
The toExponential() method returns a string representing the Number object in exponential notation |
|
Number.prototype.toFixed() | JavaScript, Method, Number, prototype |
The toFixed() method formats a number using fixed-point notation. |
|
Number.prototype.toLocaleString() | Internationalization, JavaScript, Method, Number, prototype |
The toLocaleString() method returns a string with a language sensitive representation of this number. |
|
Number.prototype.toPrecision() | JavaScript, Method, Number, prototype |
The toPrecision() method returns a string representing the Number object to the specified precision. |
|
Number.prototype.toSource() | JavaScript, Method, Non-standard, Number, prototype |
The toSource() method returns a string representing the source code of the object. |
|
Number.prototype.toString() | JavaScript, Method, Number, Reference, Référence, prototype |
Editorial review completed. | |
Number.prototype.valueOf() | JavaScript, Method, Number, prototype |
The valueOf() method returns the primitive value of a Number object. |
|
Number.toInteger() | JavaScript, Method, Non-standard, Number, Obsolete |
The Number.toInteger() method used to evaluate the passed value and convert it to an integer, but its implementation has been removed. |
|
Object | Constructor, JavaScript, Object |
The Object constructor creates an object wrapper. |
|
Object.assign() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Object |
The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object. |
|
Object.create() | ECMAScript5, JavaScript, Method, Object |
The Object.create() method creates a new object with the specified prototype object and properties. |
|
Object.defineProperties() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object. |
|
Object.defineProperty() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.defineProperty() method defines a new property directly on an object, or modifies an existing property on an object, and returns the object. |
|
Additional examples for Object.defineProperty | Examples, JavaScript, Object |
This page provides additional examples for Object.defineProperty . |
|
Object.freeze() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.freeze() method freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed. In essence the object is made effectively immutable. The method returns the object being frozen. |
|
Object.getOwnPropertyDescriptor() | ECMAScript5, JavaScript, Method, Object |
The Object.getOwnPropertyDescriptor() method returns a property descriptor for an own property (that is, one directly present on an object, not present by dint of being along an object's prototype chain) of a given object. |
|
Object.getOwnPropertyNames() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.getOwnPropertyNames() method returns an array of all properties (enumerable or not) found directly upon a given object. |
|
Object.getOwnPropertySymbols() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Object |
The Object.getOwnPropertySymbols() method returns an array of all symbol properties found directly upon a given object. |
|
Object.getPrototypeOf() | ECMAScript5, JavaScript, Method, NeedsExample, Object |
The Object.getPrototypeOf() method returns the prototype (i.e. the internal [[Prototype]] ) of the specified object. |
|
Object.is() | ECMAScript6, Experimental, JavaScript, Method, Object |
Editorial review completed. | |
Object.isExtensible() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it). |
|
Object.isFrozen() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.isFrozen() determines if an object is frozen. |
|
Object.isSealed() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.isSealed() method determines if an object is sealed. |
|
Object.keys() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.keys() method returns an array of a given object's own enumerable properties, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well). |
|
Object.preventExtensions() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object). |
|
Object.prototype | JavaScript, Object, Property |
The Object.prototype property represents the Object prototype object. |
|
Object.prototype.__count__ | JavaScript, Object, Obsolete, Property, prototype |
The __count__ property used to store the count of enumerable properties on the object, but it has been removed. |
|
Object.prototype.__defineGetter__() | JavaScript, Method, Non-standard, Object, prototype |
The __defineGetter__ method binds an object's property to a function to be called when that property is looked up. |
|
Object.prototype.__defineSetter__() | JavaScript, Method, NeedsExample, Non-standard, Object, prototype |
The __defineSetter__ method binds an object's property to a function to be called when an attempt is made to set that property. |
|
Object.prototype.__lookupGetter__() | JavaScript, Method, NeedsExample, Non-standard, Object, prototype |
The __lookupGetter__ method returns the function bound as a getter to the specified property. |
|
Object.prototype.__lookupSetter__() | JavaScript, Method, NeedsExample, Non-standard, Object, prototype |
The __lookupSetter__ method returns the function bound as a setter to the specified property. |
|
Object.prototype.__noSuchMethod__ | JavaScript, Non-standard, Object, Property, prototype |
The __noSuchMethod__ property references a function to be executed when a non-existent method is called on an object. |
|
Object.prototype.__parent__ | JavaScript, Object, Obsolete, Property, prototype |
The __parent__ property used to point to an object's context, but it has been removed. |
|
Object.prototype.__proto__ | JavaScript, Object, Property, prototype |
The __proto__ property of Object.prototype is an accessor property (a getter function and a setter function) that exposes the internal [[Prototype]] (either an object or null ) of the object through which it is accessed. |
|
Object.prototype.constructor | JavaScript, Object, Property, prototype |
Returns a reference to the Object function that created the instance's prototype. Note that the value of this property is a reference to the function itself, not a string containing the function's name. The value is only read-only for primitive values such as 1 , true and "test" . |
|
Object.prototype.eval() | JavaScript, Method, Object, Obsolete |
The obj.eval() method used to evaluate a string of JavaScript code in the context of an object, however, this method has been removed. |
|
Object.prototype.hasOwnProperty() | JavaScript, Method, Object, prototype |
The hasOwnProperty() method returns a boolean indicating whether the object has the specified property. |
|
Object.prototype.isPrototypeOf() | JavaScript, Method, Object, prototype |
The isPrototypeOf() method tests for an object in another object's prototype chain. |
|
Object.prototype.propertyIsEnumerable() | JavaScript, Method, Object, prototype |
The propertyIsEnumerable() method returns a Boolean indicating whether the specified property is enumerable. |
|
Object.prototype.toLocaleString() | JavaScript, Method, Object, prototype |
The toLocaleString() method returns a string representing the object. This method is meant to be overriden by derived objects for locale-specific purposes. |
|
Object.prototype.toSource() | JavaScript, Method, Non-standard, Object, prototype |
The toSource() method returns a string representing the source code of the object. |
|
Object.prototype.toString() | JavaScript, Method, Object, prototype |
The toString() method returns a string representing object. |
|
Object.prototype.unwatch() | JavaScript, Method, Non-standard, Object, Reference, Référence, prototype |
The unwatch() method removes a watchpoint set with the watch() method. |
|
Object.prototype.valueOf() | JavaScript, Method, Object, prototype |
The valueOf() method returns the primitive value of the specified object. |
|
Object.prototype.watch() | JavaScript, Method, Non-standard, Object, prototype |
The watch() method watches for a property to be assigned a value and runs a function when that occurs. |
|
Object.seal() | ECMAScript5, JavaScript, JavaScript 1.8.5, Method, Object |
The Object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable. |
|
Object.setPrototypeOf() | ECMAScript6, Experimental, JavaScript, Method, Object, Reference, Référence |
The Object.setPrototype() method sets the prototype (i.e., the internal [[Prototype]] property ) of a specified object to another object or null . |
|
ParallelArray | JavaScript, Obsolete, ParallelArray |
The goal of ParallelArray is to enable data-parallelism in web applications. The higher-order functions available on ParallelArray attempt to execute in parallel, though they may fall back to sequential execution if necessary. To ensure that your code executes in parallel, it is suggested that the functions should be limited to the parallelizable subset of JS that Firefox supports. | |
Promise | ECMAScript6, Experimental, Expérimental, JavaScript, Promise |
The Promise interface represents a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers to an asynchronous action's eventual success or failure. This lets asynchronous methods return values like synchronous methods: instead of the final value, the asynchronous method returns a promise of having a value at some point in the future. |
|
Proxy | ECMAScript6 |
Proxies are objects for which the programmer has to define the semantics in JavaScript. The default object semantics are implemented in the JavaScript engine, often written in lower-level languages like C++. Proxies let the programmer define most of the behavior of an object in JavaScript. They are said to provide a meta-programming API. | |
RangeError | Error, JavaScript, Object, RangeError |
The RangeError object indicates an error when a value is not in the set or range of allowed values. |
|
RangeError.prototype | Error, JavaScript, Property, RangeError |
The RangeError.prototype property represents the prototype the RangeError constructor. |
|
ReferenceError | Error, JavaScript, NeedsExample, Object, ReferenceError |
The ReferenceError object represents an error when a non-existent variable is referenced. |
|
ReferenceError.prototype | Error, JavaScript, Property, ReferenceError |
The ReferenceError.prototype property represents the prototype for the ReferenceError constructor. |
|
RegExp | Constructor, JavaScript, Regular Expressions, regexp |
The RegExp constructor creates a regular expression object for matching text with a pattern. |
|
RegExp.lastIndex | JavaScript, Property, Regular Expressions, regexp |
The lastIndex is a read/write integer property of regular expressions that specifies the index at which to start the next match. |
|
RegExp.prototype | JavaScript, Property, regexp |
The Regex.prototype property represents the prototype object for the RegExp constructor. |
|
RegExp.prototype.exec() | JavaScript, Method, Regular Expressions, prototype, regexp |
The exec() method executes a search for a match in a specified string. Returns a result array, or null . |
|
RegExp.prototype.global | JavaScript, Property, prototype, regexp |
The global property indicates whether or not the "g " flag is used with the regular expression. global is a read-only property of an individual regular expression instance. |
|
RegExp.prototype.ignoreCase | JavaScript, Property, prototype, regexp |
The ignoreCase property indicates whether or not the "i " flag is used with the regular expression. ignoreCase is a read-only property of an individual regular expression instance. |
|
RegExp.prototype.multiline | JavaScript, Property, Regular Expressions, prototype, regexp |
The multiline property indicates whether or not the "m " flag is used with the regular expression. multiline is a read-only property of an individual regular expression instance. |
|
RegExp.prototype.source | JavaScript, Property, prototype, regexp |
The source property returns a String containing the text of the pattern, excluding the forward slashes. It is a read-only property of an individual regular expression instance. source does not contain any flags (like "g", "i" or "m") of the regular expression. |
|
RegExp.prototype.sticky | Experimental, Expérimental, JavaScript, Property, Reference, Référence, prototype, regexp |
The sticky property reflects whether or not the search is sticky (searches in strings only from the index indicated by the lastIndex property of this regular expression). sticky is a read-only property of an individual regular expression object. |
|
RegExp.prototype.test() | JavaScript, Method, Regular Expressions, prototype, regexp |
The test() method executes a search for a match between a regular expression and a specified string. Returns true or false . |
|
RegExp.prototype.toSource() | JavaScript, Method, Non-standard, prototype, regexp |
The toSource() method returns a string representing the source code of the object. |
|
RegExp.prototype.toString() | JavaScript, Method, prototype, regexp |
The toString() method returns a string representing the regular expression. |
|
Set | ECMAScript6, Experimental, Expérimental, JavaScript, set |
The Set object lets you store unique values of any type, whether primitive values or object references. |
|
Set.prototype | ECMAScript6, Experimental, Expérimental, JavaScript, Property, set |
The Set .prototype property represents the prototype for the Set constructor. |
|
Set.prototype.add() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, prototype, set |
The add() method appends a new element with a specified value to the end of a Set object. |
|
Set.prototype.clear() | ECMAScript6, Experimental, JavaScript, Method, prototype, set |
The clear() method removes all elements from a Set object. |
|
Set.prototype.delete() | ECMAScript6, Experimental, JavaScript, Method, prototype, set |
The delete() method removes the specified element from a Set object. |
|
Set.prototype.entries() | ECMAScript6, Experimental, JavaScript, Method, prototype, set |
The entries() method returns a new Iterator object that contains an array of [value, value] for each element in the Set object, in insertion order. For Set objects there is no key like in Map objects. However, to keep the API similar to the Map object, each entry has the same value for its key and value here, so that an array [value, value] is returned. |
|
Set.prototype.forEach() | ECMAScript6, Experimental, JavaScript, Method, prototype, set |
The forEach() method executes a provided function once per each value in the Set object, in insertion order. |
|
Set.prototype.has() | ECMAScript6, Experimental, JavaScript, Method, prototype, set |
The has() method returns a boolean indicating whether an element with the specified value exists in a Set object or not. |
|
Set.prototype.size | ECMAScript6, Experimental, JavaScript, Property, prototype, set |
The size accessor property returns the number of elements in a Set object. |
|
Set.prototype.values() | ECMAScript6, Experimental, JavaScript, Method, prototype, set |
The values() method returns a new Iterator object that contains the values for each element in the Set object in insertion order. |
|
String | JavaScript, String |
The String global object is a constructor for strings, or a sequence of characters. |
|
String.fromCharCode() | JavaScript, Method, String, Unicode |
The static String.fromCharCode() method returns a string created by using the specified sequence of Unicode values. | |
String.fromCodePoint() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, String |
The static String.fromCodePoint() method returns a string created by using the specified sequence of code points. | |
String.length | JavaScript, Property, String, prototype |
The length property represents the length of a string. | |
String.prototype | JavaScript, Property, String, prototype |
The String.prototype property represents the String prototype object. |
|
String.prototype.anchor() | HTML wrapper methods, JavaScript, Method, String, prototype |
The anchor() method creates an <a> HTML anchor element that is used as a hypertext target. |
|
String.prototype.big() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The big() method creates a <big> HTML element that causes a string to be displayed in a big font. |
|
String.prototype.blink() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The blink() method creates a <blink> HTML element that causes a string to blink. |
|
String.prototype.bold() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The bold() method creates a <b> HTML element that causes a string to be displayed as bold. |
|
String.prototype.charAt() | JavaScript, Method, String, prototype |
The charAt() method returns the specified character from a string. | |
String.prototype.charCodeAt() | JavaScript, Method, String, Unicode |
The charCodeAt() method returns the numeric Unicode value of the character at the given index (except for unicode codepoints > 0x10000). |
|
String.prototype.codePointAt() | ECMAScript6, Experimental, JavaScript, Method, String, prototype |
The codePointAt() method returns a non-negative integer that is the UTF-16 encoded code point value. |
|
String.prototype.concat() | JavaScript, Method, String, prototype |
The concat() method combines the text of two or more strings and returns a new string. |
|
String.prototype.contains() | Experimental, JavaScript, Method, String, prototype |
The contains() method determines whether one string may be found within another string, returning true or false as appropriate. |
|
String.prototype.endsWith() | Experimental, Expérimental, JavaScript, Method, String, prototype |
The endsWith() method determines whether a string ends with the characters of another string, returning true or false as appropriate. |
|
String.prototype.fixed() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The fixed() method creates a <tt> HTML element that causes a string to be displayed in fixed-pitch font. |
|
String.prototype.fontcolor() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The fontcolor(color) method creates a <font> HTML element that causes a string to be displayed in the specified font color. |
|
String.prototype.fontsize() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The fontsize() method creates a <font> HTML element that causes a string to be displayed in the specified font size. |
|
String.prototype.indexOf() | JavaScript, Method, String, prototype |
The indexOf() method returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex . Returns -1 if the value is not found. |
|
String.prototype.italics() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The italics() method creates an <i> HTML element that causes a string to be italic. |
|
String.prototype.lastIndexOf() | JavaScript, Method, String, prototype |
The lastIndexOf() method returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found. The calling string is searched backward, starting at fromIndex . |
|
String.prototype.link() | HTML wrapper methods, JavaScript, Method, String, prototype |
The link() method creates an <a> HTML element that causes a string to be displayed as a hypertext link to another URL. |
|
String.prototype.localeCompare() | Internationalization, JavaScript, Method, String, prototype |
The localeCompare() method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order. |
|
String.prototype.match() | JavaScript, Method, Regular Expressions, String, prototype, regexp |
The match() method retrieves the matches when matching a string against a regular expression. |
|
String.prototype.normalize() | ECMAScript6, Experimental, JavaScript, Method, String, Unicode, prototype |
The normalize() method returns the Unicode Normalization Form of a given string (if the value isn't a string, it will be converted to one first). | |
String.prototype.quote() | JavaScript, Method, Non-standard, String, prototype |
The non-standard quote() method returns a copy of the string, replacing various special characters in the string with their escape sequences and wrapping the result in double-quotes (" ). |
|
String.prototype.repeat() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Reference, Référence, String, prototype |
The repeat() method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together. |
|
String.prototype.replace() | JavaScript, Method, Regular Expressions, String, prototype |
The replace() method returns a new string with some or all matches of a pattern replaced by a replacement . The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match. |
|
String.prototype.search() | JavaScript, Method, Regular Expressions, String, prototype |
The search() method executes a search for a match between a regular expression and this String object. |
|
String.prototype.slice() | JavaScript, Method, String, prototype |
The slice() method extracts a section of a string and returns a new string. |
|
String.prototype.small() | HTML wrapper methods, JavaScript, Method, String, prototype |
The small() method creates a <small> HTML element that causes a string to be displayed in a small font. |
|
String.prototype.split() | JavaScript, Method, Regular Expressions, String, prototype |
The split() method splits a String object into an array of strings by separating the string into substrings. |
|
String.prototype.startsWith() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, String, prototype |
No summary! | |
String.prototype.strike() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The strike() method creates a <strike> HTML element that causes a string to be displayed as struck-out text. |
|
String.prototype.sub() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The sub() method creates a <sub> HTML element that causes a string to be displayed as subscript. |
|
String.prototype.substr() | JavaScript, Method, String, prototype |
Technical review completed. | |
String.prototype.substring() | JavaScript, Method, String, prototype |
The substring() method returns a subset of a string between one index and another, or through the end of the string. |
|
String.prototype.sup() | Deprecated, HTML wrapper methods, JavaScript, Method, String, prototype |
The sup() method creates a <sup> HTML element that causes a string to be displayed as superscript. |
|
String.prototype.toLocaleLowerCase() | Internationalization, JavaScript, Method, String, prototype |
The toLocaleLowerCase() method returns the calling string value converted to lower case, according to any locale-specific case mappings. |
|
String.prototype.toLocaleUpperCase() | Internationalization, JavaScript, Method, String, prototype |
The toLocaleUpperCase() method returns the calling string value converted to upper case, according to any locale-specific case mappings. |
|
String.prototype.toLowerCase() | JavaScript, Method, String, prototype |
The toLowerCase() method returns the calling string value converted to lowercase. |
|
String.prototype.toSource() | JavaScript, Method, Non-standard, String, prototype |
The toSource() method returns a string representing the source code of the object. |
|
String.prototype.toString() | JavaScript, Method, String, prototype |
The toString() method returns a string representing the specified object. |
|
String.prototype.toUpperCase() | JavaScript, Method, String, prototype |
The toUpperCase() method returns the calling string value converted to uppercase. |
|
String.prototype.trim() | ECMAScript5, JavaScript, Method, String, prototype |
The trim() method removes whitespace from both ends of the string. |
|
String.prototype.trimLeft() | JavaScript, Method, Non-standard, String, prototype |
The trimLeft() removes whitespace from the left end of the string. |
|
String.prototype.trimRight() | JavaScript, Method, Non-standard, String, prototype |
The trimRight() method removes whitespace from the right end of the string. |
|
String.prototype.valueOf() | JavaScript, Method, String, prototype |
The valueOf() method returns the primitive value of a String object. |
|
String.raw() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, String |
The static String.raw() method is a tag function of template strings, like the r prefix in Python or the @ prefix in C# for string literals, this function is used to get the raw string form of template strings. |
|
Symbol | ECMAScript6, Experimental, Expérimental, JavaScript, Symbol |
A symbol is a unique and immutable data type and may be used as an identifier for object properties. The symbol object is an implicit object wrapper for the symbol primitive data type. | |
Symbol.for() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Symbol |
The Symbol.for(key) method searches for existing symbols in a runtime-wide symbol registry with the given key and returns it if found. Otherwise a new symbol gets created in the global symbol registry with this key. |
|
Symbol.keyFor() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Symbol |
The Symbol.keyFor(sym) method retrieves a shared symbol key from the global symbol registry for the given symbol. |
|
Symbol.prototype | Experimental, Expérimental, JavaScript, Property, Symbol |
The Symbol .prototype property represents the prototype for the Symbol constructor. |
|
Symbol.prototype.toSource() | JavaScript, Method, Non-standard, Symbol, prototype |
The toSource() method returns a string representing the source code of the object. |
|
Symbol.prototype.toString() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Symbol, prototype |
The toString() method returns a string representing the specified Symbol object. |
|
Symbol.prototype.valueOf() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, Symbol, prototype |
The valueOf() method returns the primitive value of a Symbol object. |
|
SyntaxError | Error, JavaScript, NeedsExample, Object, SyntaxError |
The SyntaxError object represents an error when trying to interpret syntactically invalid code. |
|
SyntaxError.prototype | Error, JavaScript, Property, SyntaxError |
The SyntaxError.prototype property represents the prototype for the SyntaxError constructor. |
|
TypeError | Error, JavaScript, NeedsExample, Object, TypeError |
The TypeError object represents an error when a value is not of the expected type. |
|
TypeError.prototype | Error, JavaScript, Property, TypeError |
The TypeError.prototype property represents the prototype for the TypeError constructor. |
|
URIError | Error, JavaScript, NeedsExample, Object, URIError |
The URIError object represents an error when a global URI handling function was used in a wrong way. |
|
URIError.prototype | Error, JavaScript, Property, URIError |
The URIError.prototype property represents the prototype for the URIError constructor. |
|
WeakMap | ECMAScript6, Experimental, Expérimental, JavaScript, WeakMap |
The WeakMap object is a collection of key/value pairs in which the keys are objects and the values can be arbitrary values. |
|
WeakMap.prototype | ECMAScript6, Experimental, Expérimental, JavaScript, Property, WeakMap |
The WeakMap .prototype property represents the prototype for the WeakMap constructor. |
|
WeakMap.prototype.clear() | ECMAScript6, Experimental, JavaScript, Method, WeakMap, prototype |
The clear() method removes all elements from a WeakMap object. |
|
WeakMap.prototype.delete() | ECMAScript6, Experimental, JavaScript, Method, WeakMap, prototype |
The delete() method removes the specified element from a WeakMap object. |
|
WeakMap.prototype.get() | ECMAScript6, Experimental, JavaScript, Method, WeakMap, prototype |
The get() method returns a specified element from a WeakMap object. |
|
WeakMap.prototype.has() | ECMAScript6, Experimental, JavaScript, Method, WeakMap, prototype |
The has() method returns a boolean indicating whether an element with the specified key exists in the WeakMap object or not. |
|
WeakMap.prototype.set() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, WeakMap, prototype |
The set() method adds a new element with a specified key and value to a WeakMap object. |
|
WeakSet | ECMAScript6, Experimental, Expérimental, JavaScript, WeakSet |
The WeakSet object lets you store weakly held objects in a collection. |
|
WeakSet.prototype | ECMAScript6, Experimental, Expérimental, JavaScript, Property, WeakSet |
The WeakSet .prototype property represents the prototype for the WeakSet constructor. |
|
WeakSet.prototype.add() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, WeakSet, prototype |
The add() method appends a new object to the end of a WeakSet object. |
|
WeakSet.prototype.clear() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, WeakSet, prototype |
The clear() method removes all elements from a WeakSet object. |
|
WeakSet.prototype.delete() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, WeakSet, prototype |
The delete() method removes the specified element from a WeakSet object. |
|
WeakSet.prototype.has() | ECMAScript6, Experimental, Expérimental, JavaScript, Method, WeakSet, prototype |
The has() method returns a boolean indicating whether an object exists in a WeakSet or not. |
|
decodeURI() | JavaScript |
The decodeURI() function decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine. |
|
decodeURIComponent() | JavaScript, JavaScript Reference |
The decodeURIComponent() method decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine. |
|
encodeURI() | JavaScript, URI |
The encodeURI() method encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters). |
|
encodeURIComponent() | JavaScript, URI |
The encodeURIComponent() method encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters). |
|
escape() | Deprecated, JavaScript |
The deprecated escape() method computes a new string in which certain characters have been replaced by a hexadecimal escape sequence. Use encodeURI or encodeURIComponent instead. |
|
eval() | JavaScript |
The eval() method evaluates JavaScript code represented as a string. |
|
isFinite() | JavaScript |
The global isFinite() function determines whether the passed value is a finite number. If needed, the parameter is first converted to a number. |
|
isNaN() | JavaScript |
The isNaN() function determines whether a value is NaN or not. Be careful, this function is broken. You may be interested in Number.isNaN() as defined in ECMAScript 6 or you can use typeof to determine if the value is Not-A-Number. |
|
null | JavaScript, Literal, Primitive |
The value null is a JavaScript literal representing null or an "empty" value, i.e. no object value is present. It is one of JavaScript's primitive values. |
|
parseFloat() | JavaScript |
The parseFloat() function parses a string argument and returns a floating point number. |
|
parseInt() | JavaScript |
The parseInt() function parses a string argument and returns an integer of the specified radix or base. |
|
undefined | JavaScript |
The global undefined value property represents the value undefined . It is one of JavaScript's primitive types. |
|
unescape() | JavaScript |
The deprecated unescape() method computes a new string in which hexadecimal escape sequences are replaced with the character that it represents. The escape sequences might be introduced by a function like escape . Because unescape is deprecated, use decodeURI or decodeURIComponent instead. |
|
uneval() | JavaScript, Non-standard |
The uneval() method creates an string representation of the source code of an Object. |
|
Statements and declarations | JavaScript, Reference, Référence, statements |
JavaScript applications consist of statements with an appropriate syntax. A single statement may span multiple lines. Multiple statements may occur on a single line if each statement is separated by a semicolon. This isn't a keyword, but a group of keywords. | |
block | JavaScript, Reference, Référence, Statement |
A block statement (or compound statement in other languages) is used to group zero or more statements. The block is delimited by a pair of curly brackets. | |
break | JavaScript, Statement |
The break statement terminates the current loop, switch, or label statement and transfers program control to the statement following the terminated statement. | |
const | ECMAScript6, Experimental, Expérimental, JavaScript, Statement |
The const declaration creates a read-only named constant. | |
continue | JavaScript, Statement |
The continue statement terminates execution of the statements in the current iteration of the current or labeled loop, and continues execution of the loop with the next iteration. | |
debugger | JavaScript, Statement |
The debugger statement invokes any available debugging functionality, such as setting a breakpoint. If no debugging functionality is available, this statement has no effect. | |
do...while | JavaScript, Statement |
The do...while statement creates a loop that executes a specified statement until the test condition evaluates to false. The condition is evaluated after executing the statement, resulting in the specified statement executing at least once. |
|
empty | JavaScript, Statement |
An empty statement is used to provide no statement, although the JavaScript syntax would expect one. | |
export | JavaScript, NeedsUpdate, Obsolete, Statement |
The export statement used to allow a signed script to provide properties, functions, and objects to other signed or unsigned scripts. It is an ancient Netscape 4 feature and has been removed in Firefox 3.5 (bug 447713). In the future, a new export declaration will be specified by ECMAScript 6 modules. | |
for | JavaScript, Statement |
The for statement creates a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement executed in the loop. | |
for each...in | Deprecated, E4X, JavaScript, Statement |
The for each...in statement iterates a specified variable over all values of object's properties. For each distinct property, a specified statement is executed. |
|
for...in | JavaScript, Statement |
The for..in statement iterates over the enumerable properties of an object, in arbitrary order. For each distinct property, statements can be executed. |
|
for...of | ECMAScript6, Experimental, Expérimental, JavaScript, JavaScript Reference, Statement |
The for...of statement creates a loop Iterating over iterable objects (including Array , Map , Set , arguments object and so on), invoking a custom iteration hook with statements to be executed for the value of each distinct property. |
|
function | JavaScript, Statement |
The function statement declares function with the specified parameters. | |
function* | ECMAScript6, Experimental, Expérimental, Function, Iterator, JavaScript, NeedsUpdate, Statement |
Generators functions enable writing iterators more easily. | |
if...else | JavaScript, Statement |
The if statement executes a statement if a specified condition is true. If the condition is false, another statement can be executed. | |
import | ECMAScript6, Experimental, Expérimental, JavaScript, Modules, Statement |
The import statement is used to import functions exported from an external module, another script. | |
label | JavaScript, Statement |
The labeled statement can be used with break or continue statements. It is prefixing a statement with an identifier which you can refer to. |
|
let | ECMAScript6, Experimental, Expérimental, JavaScript, Statement |
Declares a block scope local variable, optionally initializing it to a value. | |
return | JavaScript, Statement |
The return statement ends function execution and specifies a value to be returned to the function caller. |
|
switch | JavaScript, Statement |
The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case. | |
throw | JavaScript, Statement |
The throw statement throws a user-defined exception. Execution of the current function will stop (the statements after throw won't be executed), and control will be passed to the first catch block in the call stack. If no catch block exists among caller functions, the program will terminate. |
|
try...catch | JavaScript, Statement |
The try...catch statement marks a block of statements to try, and specifies a response, should an exception be thrown. |
|
var | JavaScript, Statement |
The variable statement declares a variable, optionally initializing it to a value. |
|
while | JavaScript, Statement |
The while statement creates a loop that executes a specified statement as long as the test condition evaluates to true. The condition is evaluated before executing the statement. | |
with | Deprecated, JavaScript, Statement |
The with statement extends the scope chain for a statement. | |
yield | ECMAScript6, Experimental, JavaScript, Statement |
See New_in_JavaScript 1.7 & Iterators and generators | |
Strict mode | ECMAScript5, JavaScript 1.8.5, Strict Mode |
ECMAScript 5's strict mode is a way to opt in to a restricted variant of JavaScript. Strict mode isn't just a subset: it intentionally has different semantics from normal code. Browsers not supporting strict mode will run strict mode code with different behavior from browsers that do, so don't rely on strict mode without feature-testing for support for the relevant aspects of strict mode. Strict mode code and non-strict mode code can coexist, so scripts can opt into strict mode incrementally. | |
Transitioning to strict mode | Advanced, Guide, JavaScript |
ECMAScript 5 introduced strict mode which is now implemented in all major browsers (including IE10). While making web browsers interpret code as strict is easy (just add "use strict"; at the top of your source code), transitioning an existing code base to strict mode requires a bit more work. |
|
Template strings | ECMAScript6, Experimental, Expérimental, JavaScript |
Template strings are string literals allowing embedded expressions. You can use multi-line strings and string interpolation features with them. | |
JavaScript shells | Extensions, JavaScript, Tools |
A JavaScript shell allows you to quickly test snippets of JavaScript code without having to reload a web page. They are extremely useful for developing and debugging code. | |
JavaScript technologies overview | Beginner, DOM, JavaScript |
While HTML is used to define the structure and content of a web page and CSS encodes the style of how the formatted content should be graphically displayed, JavaScript is used to add interactivity to a web page or create rich web applications. | |
JavaScript typed arrays | Guide, JavaScript |
As web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using WebSockets, and so forth, it has become clear that there are times when it would be helpful for JavaScript code to be able to quickly and easily manipulate raw binary data. In the past, this had to be simulated by treating the raw data as a string and using the charCodeAt() method to read the bytes from the data buffer. |
|
Memory Management | JavaScript |
Low-level languages, like C, have low-level memory management primitives like malloc() and free() . On the other hand, JavaScript values are allocated when things (objects, strings, etc.) are created and "automatically" free'd when they are not used anymore. The latter process is called garbage collection. This "automatically" is a source of confusion and gives JavaScript (and high-level languages) developers the impression they can decide not to care about memory management. This is a mistake. |
|
New in JavaScript | JavaScript, Versions |
This chapter contains information about JavaScript's version history and implementation status for Mozilla/SpiderMonkey-based JavaScript applications, such as Firefox. | |
ECMAScript 5 support in Mozilla | ECMAScript5, JavaScript, Versions |
ECMAScript 5.1, the latest edition of the standard upon which JavaScript is based, was approved in June 2011. | |
ECMAScript 6 support in Mozilla | ECMAScript6, JavaScript |
ECMAScript 6 is the next version of the standard, code-named "Harmony" or "ES.next". Specification drafts can be found on the official ECMA wiki. The first working draft based on ECMAScript 5.1, was published on July 12, 2011 as "ES.next". As of August 2014, ECMAScript 6 is already feature frozen, will be finished around the end of 2014 and will start to go into the official publication process starting in March 2015. | |
Firefox JavaScript changelog | JavaScript, Versions |
The following is a changelog for JavaScript features in Firefox releases. | |
New in JavaScript 1.1 | JavaScript, Versions |
No summary! | |
New in JavaScript 1.2 | JavaScript, Versions |
No summary! | |
New in JavaScript 1.3 | JavaScript, Versions |
The following is a comparison between the June 1998 version of ECMA-262 and JavaScript 1.3. The following features were not part of the standard at that time, but implemented in JavaScript 1.3. | |
New in JavaScript 1.4 | JavaScript, Versions |
No summary! | |
New in JavaScript 1.5 | JavaScript, Versions |
No summary! | |
New in JavaScript 1.6 | JavaScript, Versions |
The following is a changelog for JavaScript 1.6. This version was included in Firefox 1.5 (Gecko 1.8), which was released in November 2005. The corresponding ECMA standard is ECMA-262 Edition 3 and ECMAScript for XML (E4X) with some additional features. Several new features were introduced: E4X, several new Array methods, and Array and String generics. |
|
New in JavaScript 1.7 | JavaScript, Versions |
The following is a changelog for JavaScript 1.7. This version was included in Firefox 2 (October 2006). | |
New in JavaScript 1.8 | JavaScript, Versions |
The following is a changelog for JavaScript 1.8. This version was included in Firefox 3 and is part of Gecko 1.9. See bug 380236 for a tracking development bug for JavaScript 1.8. | |
New in JavaScript 1.8.1 | Firefox 3.5, JavaScript, Versions |
No summary! | |
New in JavaScript 1.8.5 | ECMAScript5, Firefox 4, JavaScript, JavaScript 1.8.5, Versions |
Various non-standard syntaxes for defining getters and setters have been removed; ECMAScript 5 defined syntax has not been changed. These were all pretty esoteric and rarely used; if this affects you, see this blog post for details. | |
Old Proxy API | API, Guide, JavaScript, Non Standard, SpiderMonkey, junk |
Proxies are objects for which the programmer has to define the semantics in JavaScript. The default object semantics are implemented in the JavaScript engine, often written in lower-level languages like C++. Proxies let the programmer define most of the behavior of an object in JavaScript. They are said to provide a meta-programming API. | |