The Ultimate JavaScript Cheat Sheet
The Ultimate JavaScript Cheat Sheet
The Ultimate JavaScript Cheat Sheet
Akshata Shanbha
411 articles
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 1/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Sheet Ad
Shortc
Action
ut
JavaScript Arrays
concat( Join several arrays into one
) Sponsored
copyWi Copy array elements within the array, to and from 97% Chicken Bathed In Chlorin
thin() specified positions
The Liquid In The Chicken Bag Isn't
Water. Learn What Your Family
indexOf Return the primitive value of the specified object Needs To Do Today.
()
every() Check if every element in an array passes a test TangoTab is a Cheap Androi
Tablet with a Plethora of Po
fill() Fill the elements in an array with a static value by Kris Wouk
find() Return the value of the first element in an array that XP Pen Note Plus is a Magic
pass a test Paper Notepad That Scans
Everything You Write
forEach Call a function for each array element by James Bruce
()
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 2/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
+ Addition
The Mega $
- Subtraction Microso O ice
Course Bundle
* Multiplication
/ Division
The 2020 $
(...) Grouping operator (operations within brackets are
Premium Learn
executed earlier than those outside)
To Code
% Modulus (remainder) Certification
++ Increment numbers
-- Decrement numbers
== Equal to
!= Not equal
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 3/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Lesser than
? Ternary operator
Logical Operators
|| Logical OR
! Logical NOT
Bitwise Operators
| OR statement
~ NOT
^ XOR
Left shift
Functions
Global Functions
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 4/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
JavaScript Loops
Escape Characters
\\ Backslash
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 5/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
\b Backspace
\f Form feed
\n New line
\r Carriage return
\t Horizontal tabulator
\v Vertical tabulator
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 6/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Pattern Modifiers
e Evaluate replacement
U Ungreedy pattern
Brackets
Metacharacters
\w Word character
\W Non-word character
\d A digit
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 7/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
\D A non-digit character
\s Whitespace character
\S Non-whitespace character
\t Tab character
Quantifiers
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 8/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Number Properties
Number Methods
Math Properties
E Euler’s number
PI The number PI
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 9/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Math Methods
exp(x) Value of Ex
Dates
Date() Create a new date object with the current date and
time
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 10/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 11/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
DOM MODE
Node Properties
Shortc
Action PC & MOBILE LIFESTYLE
ut
Node Methods
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 13/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Element Methods
getAttri Return the attribute node for the attribute with the
buteNo given namespace and name
deNS()
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 14/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 15/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 16/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Screen Properties
JAVASCRIPT EVENTS
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 17/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 18/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 19/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 20/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Animation
Miscellaneous
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 21/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Shortc
Action PC & MOBILE LIFESTYLE
ut
Read More
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 22/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
your@email.com Submit
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 23/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
The Worst and Hardest Programming Languages to Avoid Like the Plague
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 24/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
Cheat Sheet: The Vim Linux Command Line Editor Cheat Sheet
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 25/26
3/5/2020 The Ultimate JavaScript Cheat Sheet
https://www.makeuseof.com/tag/ultimate-javascript-cheat-sheet/ 26/26