My JS notes Cheat Sheet by dimitrios
Slice VS Splice
The slice() method retrurns a shallow copy of a portion of an array into a new array object:
The splice method changes the content of an array by removing existing elements and/or adding new elements.
arr.splice(start, deleteCount [, item1 [, item2 ...]])
Strings: substr VS substring
"Falsy" values in JS
Array includes element
Case insensitive comparisson
(always) Thanks to MDN
Download the My JS notes Cheat Sheet
Share This Cheat Sheet!
Your Download Will Begin Automatically in 5 Seconds.