Professional Documents
Culture Documents
Javascript Cheatsheet Page2 HD Codemio
Javascript Cheatsheet Page2 HD Codemio
Javascript Cheatsheet Page2 HD Codemio
PROPERTIES
Symbol()
PROPERTIES
METHODS
PROGRAMMING
Q.abs(x) absolu
Q.cbrt(x) cube r
Q.clz32(x) return
Q.exp(x) return
(D.expm1(x) retu
CI.hypot(x1, x2...
Q.imul(a, b) sign
Q.log( ) natural
C).log1p(x) natu
4D.log10(x) base
CI.log2( c) base
Q.max(xl, x2...)
e.min(x1, x2...) r
Q.pow(base, exp
Q.random() float
Q.sign(x) return
C).sqrt(x) square
Q.ceil(x)
superior
round
(smallest
)
Q.floor(x
) inferior
round
(largest)
Q.fround(
x)
nearest
single
precision
Q.round(
x) round
(nearest
integer)
Q.trunc(x
) remove
fractional
digits
,H
Q.acos(x) arcco
Q.acosh(x) hype
Q.asin(x) arcsin
Q.asinh(x) hyper
Cl.atan( c) arctan
Q.atan2(x, y) arc
Q.atanh(x) hype
CI.cos(v) cosine
Q.cosh(x) hyper
Q.sin( ) sine
CI.sinh( () hyper
Q.tan( ) tangen
Q.tanh(x) hyperb
J
S
O
N
M
E
T
H
O
C
I
I
I
Q.parse( r ,
tf(k,v)) parse
string to
object
Q.stringify(ob
j, repflwl, sp)
convert to str
E
r
r
o
r
(
)
P
R
O
P
E
R
T
I
E
S
'.name return
U .message retu
o Object()
PROPERTIES
o .constructor re
METHODS
(:).assign(d
st, src1,
src2...) copy
values
e.create(pro
to, prop)
create obj
w/prop
C).definePr
operties(ob
j, prop)
Q.definePro
perty(obj,
prop, desc)
eireeze(obj
) avoid
properties
changes
o.getOwnP
ropertyDesc
riptor(obj,
prop)
C).getOwnP
ropertyNam
es(obj)
C)
.getOwnPro
pertySymbo
ls(obj)
e.getPrototy
peOf(obj)
return
prototype
v
al2) check
if are same
value ()
.isExtensible(o
bj ) check if
can add
prop
O.isFrozen(
obj) check
if obj is
frozen
Q.isSealed(
obj) check
if obj is
sealed
0.keys(obj)
return only
keys of
object
e.preventEx
tensions(ob
j) avoid
extend
Q.seal(obj)
prop are
non-
configurabl
e
CI.setProtot
ypeOf(obj,
prot)
change prot
.all(obj) retur
.catch(onReje
.then(onFulfil
o.race(obj) retur
0.resolve(obj) r
^.reject(reason)
p Proxy()
METHODS
.apply(obj, arg, ar
.construct(obj, ar
.defineProperty(
.deleteProperty(o
delete .enumerat
.get(obj, pry - , re
.getOwnProperty
.getPrototypeOf(
) .-i
.ownKeys(011
.preventExtensio
.set(o , va
globals
METHODS
eval( tr)
evaluate
javascrip
t code
isFinite(o
bj) check
if is a
finite
number
isNaN(obj
) check if
is not a
number
C
parselnt(
, radix)
string to
integer
parseFloa
t( ,
radix)
string to
float
encodeUR
lCompone
nt(URI) =
to %3D
decodeUR
ICompon
ent(,""!)
%3D to =
o Aerator
specifies
default
iterator
0.match
specifies
match of
regexp
0.species
specifies
constructor
function
METHODS
.for( )
search
existing
symbols
.keyFor(
return
key from
global
reg
g Generator()
METHODS
0
.next(valu
e) return
obj
w/{value,
done} 0
.return(val
ue) return
value &
true done
.throw(exc
ept) throw
an error
O
t
h
e
r
s
FAST TIPS