Show Menu
Cheatography

JavaScript Cheat Sheet (DRAFT) by

JavaScript notes to help me code.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Const

arrays, objects, functions

Arrays

pop(), push(), shift(), unshift()
pets.s­pli­ce(2, 2, "­pig­", "­duc­k","e­mu");
pets.s­lice(2, 4);
array.i­nc­lud­es(3) // true
const arr = Array.f­ro­m("S­tri­ng")'
const arr = Array.o­f(1, 2, 3);