JS Cheat Sheet
JS Cheat Sheet
Cheat Sheet
Object Methods
Object.keys() Object.seal()
Object.values() Object.create()
Object.entries() Object.hasOwnProperty()
Object.assign() Object.getPrototypeOf()
Object.freeze()
@codewithnikhill 02
Math Methods
Math.abs() Math.min()
Math.ceil() Math.random()
Math.floor() Math.pow()
Math.round() Math.sqrt()
Math.max() Math.trunc()
Date Methods
.getDate() .setDate()
.getDay() .setFullYear()
.getFullYear() .setHours()
.getHours() .setMinutes()
.getMinutes() .setSeconds()
.getSeconds() .setMilliseconds()
.getMilliseconds() .setMonth()
.getMonth() .setTime()
.getTime()
@codewithnikhill 03
Number Methods Promise Methods
.toFixed() Promise.all()
.toPrecision() Promise.race()
.toString() Promise.resolve()
Number.isInteger() Promise.reject()
Number.isNaN() .then()
.catch()
.finally()
@codewithnikhill 04
Miscellaneous Function Types
setTimeout() Regular Functions
setInterval() Arrow Functions
clearTimeout() Anonymous Functions
clearInterval() Immediately Invoked
parseInt() Function Expressions (IIFE)
parseFloat() Callback Functions
JSON.stringify() Higher-Order Functions
JSON.parse()
typeof
instanceof
@codewithnikhill 05
Was It Helpful ?
Link in bio !