Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Category: JavaScript Reference

  • October 9, 2026
    The Symbol.replace method of RegExp instances specifies how String.prototype.replace() and String.prototype.replaceAll() should behave when the regular expression is passed in…
  • October 9, 2026
    The Symbol.match method of RegExp instances specifies how String.prototype.match() should behave.
  • October 9, 2026
    The toString() method of RegExp instances returns a string representing this regular expression.
  • October 9, 2026
    The unicode accessor property of RegExp instances returns whether or not the u flag is used with this regular expression.
  • October 9, 2026
    The unicodeSets accessor property of RegExp instances returns whether or not the v flag is used with this regular expression.
  • October 9, 2026
    The test() method of RegExp instances executes a search with this regular expression for a match between a regular expression…
  • October 9, 2026
    The sticky accessor property of RegExp instances returns whether or not the y flag is used with this regular expression.
  • October 9, 2026
    The source accessor property of RegExp instances returns a string containing the source text of this regular expression, without the…
  • October 9, 2026
    The multiline accessor property of RegExp instances returns whether or not the m flag is used with this regular expression.
  • October 9, 2026
    The hasIndices accessor property of RegExp instances returns whether or not the d flag is used with this regular expression.
  • October 9, 2026
    The ignoreCase accessor property of RegExp instances returns whether or not the i flag is used with this regular expression.
  • October 9, 2026
    The flags accessor property of RegExp instances returns the flags of this regular expression.
  • October 9, 2026
    The global accessor property of RegExp instances returns whether or not the g flag is used with this regular expression.
  • October 9, 2026
    The dotAll accessor property of RegExp instances returns whether or not the s flag is used with this regular expression.
  • October 9, 2026
    The exec() method of RegExp instances executes a search with this regular expression for a match in a specified string…
  • October 9, 2026
    The RegExp object is used for matching text with a pattern.
  • October 9, 2026
    For an introduction to regular expressions, read the Regular Expressions chapter in the JavaScript Guide.
  • October 9, 2026
    The RegExp.escape() static method escapes any potential regex syntax characters in a string, and returns a new string that can…
  • October 9, 2026
    The Reflect.set() static method is like the property accessor and assignment syntax, but as a function.
  • October 9, 2026
    The Reflect.setPrototypeOf() static method is like Object.setPrototypeOf() but returns a Boolean.
  • October 9, 2026
    The Reflect.preventExtensions() static method is like Object.preventExtensions().
  • October 9, 2026
    The Reflect.isExtensible() static method is like Object.isExtensible().
  • October 9, 2026
    The Reflect.ownKeys() static method returns an array of the target object's own property keys.
  • October 9, 2026
    The Reflect.has() static method is like the in operator, but as a function.
  • October 9, 2026
    The Reflect.deleteProperty() static method is like the delete operator, but as a function.
  • October 9, 2026
    The Reflect.get() static method is like the property accessor syntax, but as a function.
  • October 9, 2026
    The Reflect.getOwnPropertyDescriptor() static method is like Object.getOwnPropertyDescriptor().
  • October 9, 2026
    The Reflect.getPrototypeOf() static method is like Object.getPrototypeOf().
  • October 9, 2026
    The Reflect.defineProperty() static method is like Object.defineProperty() but returns a Boolean.
  • October 9, 2026
    The Reflect.apply() static method calls a target function with arguments as specified.
  • October 9, 2026
    The Reflect.construct() static method is like the new operator, but as a function.
  • October 9, 2026
    The Reflect namespace object contains static methods for invoking interceptable JavaScript object internal methods.
  • October 9, 2026
    The ReferenceError object represents an error when a variable that doesn't exist (or hasn't yet been initialized) in the current…
  • October 9, 2026
    The RangeError object indicates an error when a value is not in the set or range of allowed values.
  • October 9, 2026
    The Proxy.revocable() static method creates a revocable Proxy object.
  • October 9, 2026
    Use the Proxy() constructor to create a new Proxy object.
  • October 9, 2026
    The Proxy object enables you to create a proxy for another object, which can intercept and redefine fundamental operations for…
  • October 9, 2026
    The Promise.try() static method takes a callback of any kind (returns or throws, synchronously or asynchronously) and resolves its result…
  • October 9, 2026
    The Promise.withResolvers() static method returns an object containing a new Promise object and two functions to resolve or reject it,…
  • October 9, 2026
    The Promise[Symbol.species] static accessor property returns the constructor used to construct return values from promise methods.
  • October 9, 2026
    The Promise.resolve() static method "resolves" a given value to a Promise.
  • October 9, 2026
    The Promise.reject() static method returns a Promise object that is rejected with a given reason.
  • October 9, 2026
    The then() method of Promise instances takes up to two arguments: callback functions for the fulfilled and rejected cases of…
  • October 9, 2026
    The Promise.race() static method takes an iterable of promises as input and returns a single Promise.
  • October 9, 2026
    The Promise.any() static method takes an iterable of promises as input and returns a single Promise.
  • October 9, 2026
    The catch() method of Promise instances schedules a function to be called when the promise is rejected.
  • October 9, 2026
    The finally() method of Promise instances schedules a function to be called when the promise is settled (either fulfilled or…
  • October 9, 2026
    The Promise() constructor creates Promise objects.
  • October 9, 2026
    The Promise.all() static method takes an iterable of promises as input and returns a single Promise.
  • October 9, 2026
    The Promise.allSettled() static method takes an iterable of promises as input and returns a single Promise.
  • October 9, 2026
    The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value.
  • October 9, 2026
    The parseFloat() function parses a string argument and returns a floating point number.
  • October 9, 2026
    The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral…
  • October 9, 2026
    The isPrototypeOf() method of Object instances checks if this object exists in another object's prototype chain.
  • October 9, 2026
    The propertyIsEnumerable() method of Object instances returns a boolean indicating whether the specified property is this object's enumerable own property.
  • October 9, 2026
    The hasOwnProperty() method of Object instances returns a boolean indicating whether this object has the specified property as its own…
  • October 9, 2026
    The Object.preventExtensions() static method prevents new properties from ever being added to an object (i.e., prevents future extensions to the…
  • October 9, 2026
    The constructor data property of an Object instance returns a reference to the constructor function that created the instance object.
  • October 9, 2026
    The Object.isSealed() static method determines if an object is sealed.
  • October 9, 2026
    The Object.keys() static method returns an array of a given object's own enumerable string-keyed property names.
  • October 9, 2026
    The Object.isExtensible() static method determines if an object is extensible (whether it can have new properties added to it).
  • October 9, 2026
    The Object.isFrozen() static method determines if an object is frozen.
  • October 9, 2026
    The Object.hasOwn() static method returns true if the specified object has the indicated property as its own property.
  • October 9, 2026
    The Object.is() static method determines whether two values are the same value.
  • October 9, 2026
    The Object.getOwnPropertySymbols() static method returns an array of all symbol properties found directly upon a given object.
  • October 9, 2026
    The Object.getPrototypeOf() static method returns the prototype (i.e., the value of the internal [[Prototype]] property) of the specified object.
  • October 9, 2026
    Note: In some versions of some browsers, this method was implemented as the method Array.prototype.group().
  • October 9, 2026
    The Object.getOwnPropertyNames() static method returns an array of all properties (including non-enumerable properties except for those which use Symbol) found…
  • October 9, 2026
    The Object.getOwnPropertyDescriptors() static method returns all own property descriptors of a given object.
  • October 9, 2026
    The Object.fromEntries() static method transforms a list of key-value pairs into an object.
  • October 9, 2026
    The Object.getOwnPropertyDescriptor() static method returns an object describing the configuration of a specific property on a given object (that is,…
  • October 9, 2026
    The Object.freeze() static method freezes an object.
  • October 9, 2026
    The Object.entries() static method returns an array of a given object's own enumerable string-keyed property key-value pairs.
  • October 9, 2026
    The Object.defineProperty() static method defines a new property directly on an object, or modifies an existing property on an object,…
  • October 9, 2026
    The Object.create() static method creates a new object, using an existing object as the prototype of the newly created object.
  • October 9, 2026
    The Object.defineProperties() static method defines new or modifies existing properties directly on an object, returning the object.
  • October 9, 2026
    The Object.assign() static method copies all enumerable own properties from one or more source objects to a target object.
  • October 9, 2026
    The Object() constructor turns the input into an object.
  • October 9, 2026
    The valueOf() method of Number values returns the value of this number.
  • October 9, 2026
    The toString() method of Number values returns a string representing this number value.
  • October 9, 2026
    The toLocaleString() method of Number values returns a string with a language-sensitive representation of this number.
  • October 9, 2026
    The toPrecision() method of Number values returns a string representing this number to the specified number of significant digits.
  • October 9, 2026
    The Number.POSITIVE_INFINITY static data property represents the positive Infinity value.
  • October 9, 2026
    The toExponential() method of Number values returns a string representing this number in exponential notation.
  • October 9, 2026
    The toFixed() method of Number values returns a string representing this number using fixed-point notation with the specified number of…
  • October 9, 2026
    The Number.parseFloat() static method parses an argument and returns a floating point number.
  • October 9, 2026
    The Number.parseInt() static method parses a string argument and returns an integer of the specified radix or base.
  • October 9, 2026
    The Number.NEGATIVE_INFINITY static data property represents the negative Infinity value.
  • October 9, 2026
    The Number.NaN static data property represents Not-A-Number, which is equivalent to NaN.
  • October 9, 2026
    The Number.MIN_VALUE static data property represents the smallest positive numeric value representable in JavaScript.
  • October 9, 2026
    The Number.MAX_VALUE static data property represents the maximum numeric value representable in JavaScript.
  • October 9, 2026
    The Number.MIN_SAFE_INTEGER static data property represents the minimum safe integer in JavaScript, or -(253 - 1).
  • October 9, 2026
    The Number.isSafeInteger() static method determines whether the provided value is a number that is a safe integer.
  • October 9, 2026
    The Number.MAX_SAFE_INTEGER static data property represents the maximum safe integer in JavaScript (253 – 1).
  • October 9, 2026
    The Number.EPSILON static data property represents the difference between 1 and the smallest floating point number greater than 1.
  • October 9, 2026
    The Number.isFinite() static method determines whether the passed value is a finite number — that is, it checks that a…
  • October 9, 2026
    The Number.isInteger() static method determines whether the passed value is an integer.
  • October 9, 2026
    The Number.isNaN() static method determines whether the passed value is the number value NaN, and returns false if the input…
  • October 9, 2026
    Number values represent floating-point numbers like 37 or -9.25.
  • October 9, 2026
    The Number() constructor creates Number objects.