code
ref
Cheat Sheets
Quick Reference
JSON Formatter
Learn
Tools
Browser Support
Search…
Ctrl K
Cheat Sheets
/
Languages
/
JavaScript
JavaScript
Core language built-ins: Array, String, Object, Promise, Math and more.
Official reference ↗
Array
Static
from()
isArray()
of()
Mutator
push()
pop()
shift()
unshift()
splice()
sort()
reverse()
fill()
copyWithin()
Accessor
at()
concat()
includes()
indexOf()
join()
slice()
toSorted()
toReversed()
with()
Iteration
forEach()
map()
filter()
reduce()
reduceRight()
find()
findIndex()
findLast()
some()
every()
flat()
flatMap()
String
Static
fromCharCode()
fromCodePoint()
raw()
Methods
at()
charAt()
codePointAt()
concat()
endsWith()
includes()
indexOf()
match()
matchAll()
normalize()
padEnd()
padStart()
repeat()
replace()
replaceAll()
search()
slice()
split()
startsWith()
substring()
toLowerCase()
toUpperCase()
trim()
trimEnd()
trimStart()
Object
Static
assign()
create()
defineProperty()
entries()
freeze()
fromEntries()
getOwnPropertyNames()
getPrototypeOf()
groupBy()
hasOwn()
is()
isFrozen()
keys()
seal()
values()
Instance
hasOwnProperty()
isPrototypeOf()
toString()
valueOf()
Promise
Static
all()
allSettled()
any()
race()
reject()
resolve()
withResolvers()
Instance
then()
catch()
finally()
Math
Methods
abs()
ceil()
floor()
round()
trunc()
max()
min()
pow()
random()
sign()
sqrt()
cbrt()
log()
log2()
log10()
hypot()
Constants
E
PI
LN2
LN10
SQRT2
Number
Static
isFinite()
isInteger()
isNaN()
isSafeInteger()
parseFloat()
parseInt()
Instance
toFixed()
toPrecision()
toString()
toLocaleString()
JSON
parse()
stringify()
Map & Set
Map
set()
get()
has()
delete()
clear()
keys()
values()
entries()
forEach()
Set
add()
has()
delete()
clear()
union()
intersection()
difference()
Statements
async function
class
const
let
for...of
for...in
if...else
switch
try...catch
import
export
Operators
Optional chaining
Nullish coalescing
Spread syntax
Destructuring
typeof
instanceof
await
new
delete
Date
Static
now()
parse()
UTC()
Getters
getFullYear()
getMonth()
getDate()
getDay()
getHours()
getMinutes()
getSeconds()
getTime()
getTimezoneOffset()
Format
toISOString()
toLocaleDateString()
toLocaleTimeString()
toJSON()
Global Functions
parseInt()
parseFloat()
isNaN()
isFinite()
encodeURIComponent()
decodeURIComponent()
encodeURI()
decodeURI()
globalThis
Errors
Error
TypeError
RangeError
SyntaxError
ReferenceError
AggregateError
Other Built-ins
Symbol
BigInt
WeakMap
WeakSet
WeakRef
Proxy
Reflect
Intl
Iterator
ArrayBuffer
DataView
Uint8Array
Functions & Classes
Functions
Arrow_functions
Default_parameters
Rest_parameters
arguments
get
set
Classes
constructor
extends
static
Private_properties
Public_class_fields
Static_initialization_blocks