Javascript Cheat Sheet: by Via
Javascript Cheat Sheet: by Via
JavaScript Arrays
x*
concat()
slice()
pattern
join()
sort()
e*
Evaluate replacement
length
splice()
(a|b)
a or b
U*
Ungreedy pattern
pop()
toSource()
(...)
Group section
* PCRE modifier
push()
toString()
[abc]
In range (a, b or c)
reverse()
unshift()
[^abc]
Not in range
shift()
valueOf()
$
.
Start of string
End of string
\s
White space
a?
Zero or one of a
a*
Zero or more of a
a*?
a+
One or more of a
a+?
a{3}
Exactly 3 of a
a{3,}
3 or more of a
a{,6}
Up to 6 of a
a{3,6}
3 to 6 of a
a{3,6}?
3 to 6 of a, ungreedy
Escape character
[:punct:]
[:space:]
[:blank:]
Space or tab
lastParen
exec()
leftCOntext
global
multiline
abs()
min()
ignoreCase
rightContext
acos()
NEGATIVE_INFINITY
input
source
asin()
PI
lastIndex
test()
atan()
POSITIVE_INFINITY
atan2()
pow()
ceil()
random()
cos()
round()
sin()
exp()
sqrt()
floor()
SQRT1_2
LN10
SQRT2
LN2
tan()
log()
toSource()
LOG10E
toExponential()
LOG2E
toFixed()
max()
toPrecision()
MAX_VALUE
toString()
MIN_VALUE
valueOf()
lastMatch
JavaScript Event Handlers
onAbort
onMouseDown
onBlur
onMouseMove
onChange
onMouseOut
onClick
onMouseOver
onDblClick
onMouseUp
onDragDrop
onMove
onError
onReset
onFocus
onResize
onKeyDown
onSelect
Pattern Modifiers
onKeyPress
onSubmit
Global match
onKeyUp
onUnload
i*
Case-insensitive
onLoad
m*
Multiple lines
s*
NaN
Sponsored by Readability-Score.com
cheatography.com/davechild/
www.addedbytes.com
Page 1 of 2.
https://readability-score.com
JavaScript Booleans
toSource()
JavaScript Strings
valueOf()
toString()
JavaScript Dates
charAt()
slice()
charCodeAt()
split() x
concat()
substr()
fromCharCode()
substring()
Date()
setMonth()
indexOf()
toLowerCase()
getDate()
setFullYear()
lastIndexOf()
toUpperCase()
getDay()
setHours()
length
toLocaleLowerCase()
getMonth
setMinutes()
localeCompare()
toLocaleUpperCase()
getFullYear
setSeconds()
match() x
toSource()
getYear
setMilliseconds()
replace() x
valueOf()
getHours
setTime()
search() x
getMinutes
setUTCDate()
getSeconds
setUTCDay()
getMilliseconds
setUTCMonth()
getTime
setUTCFullYear()
JavaScript Functions
getTimezoneOffset()
setUTCHours()
decodeURI()
isNaN()
getUTCDate()
setUTCMinutes()
decodeURIComponent()
Number()
getUTCDay()
setUTCSeconds()
encodeURI()
parseFloat()
getUTCMonth()
setUTCMilliseconds()
encodeURIComponent()
parseInt()
getUTCFullYear()
toSource()
escape()
String()
getUTCHours()
toString()
eval()
unescape()
getUTCMinutes()
toGMTString()
isFinite()
getUTCSeconds()
toUTCString()
getUTCMilliseconds()
toLocaleString()
parse()
UTC()
setDate()
valueOf()
Sponsored by Readability-Score.com
cheatography.com/davechild/
www.addedbytes.com
Page 2 of 2.
https://readability-score.com