0% found this document useful (0 votes)
9 views

JavaScript Cheat Sheet - Must Know Topics!?

This document is a comprehensive cheat sheet for JavaScript, covering essential topics such as data types, loops, control flow, and various methods for numbers, strings, arrays, objects, math, dates, and promises. It also includes information on event handling and function types. The guide encourages sharing to help others master JavaScript essentials.

Uploaded by

rizvi2793
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

JavaScript Cheat Sheet - Must Know Topics!?

This document is a comprehensive cheat sheet for JavaScript, covering essential topics such as data types, loops, control flow, and various methods for numbers, strings, arrays, objects, math, dates, and promises. It also includes information on event handling and function types. The guide encourages sharing to help others master JavaScript essentials.

Uploaded by

rizvi2793
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

01

JAVASCRIPT
Cheat Sheet
📜 A Quick Guide to Mastering JS Essentials!
02

DATA TYPES
Number BigInt Symbol
String Null Array
Boolean Undefined Object

LOOPS
for for...of do...while
while for...in

CONTROL FLOW
if...else break
switch continue

NUMBER METHODS
.toFixed() Number.isInteger()
.toString() Number.isNaN()
.toPrecision()
03

STRING METHODS
.charAt() .split()
.concat() .substring
.includes() .toLowerCase()
.indexOf() .toUpperCase()
.lastIndexOf() .trim()
.slice .replace
.splice .startsWith()

ARRAY METHODS
.push() .indexOf() .reduce()
.pop() .lastIndexOf() .forEach()
.shift() .includes() .some()
.unshift() .find() .every()
.concat() .findIndex() .sort()
.slice() .filter() .reverse()
.splice() .map() .join()
04

OBJECT METHODS
Object.keys() Object.seal()
Object.value() Object.create()
Object.entries() Object.hasOwnProperty
Object.assign() Object.getPrototype()
Object.freeze()

MATH METHODS
Math.abs() Math.min()
Math.ceil() Math.max()
Math.floor() Math.random()
Math.round() Math.pow()
Math.trunc() Math.sqrt()
05

DATE METHODS
.getFullYear() .setFullYear()
.getMonth() .setMonth()
.getDate() .setDate()
.getDay() .setHours()
.getHours() .setMinutes()
.getMinutes() .setSeconds()
.getSeconds() .setTime()
.getTime() .setMilliseconds()
.getMilliseconds()

PROMISE METHODS
Promise.all() .then()
Promise.race() .catch()
Promise.resolve() .finally()
Promise.reject()
06

EVENTS
onchange onmouseout
onclick onkeydown
onmouseover onload

FUNCTION TYPES
Anonymous Fun IIFE
Regular Fun Callback Fun
Arrow Fun Higher Order Fun

MISCELLANEOUS
setTimeout() parseFloat()
clearTimeout() JSON.stringify()
setInterval() JSON.parse()
clearInterval() typeof
parseInt() instanceof
07

REPOST,
IF YOU LIKED THE POST!

Save this guide and share it with your


network! Let's make array manipulation
simpler and smarter.

You might also like