JavaScript Mnemotechnics
Useful tips to remember evil twins distinct behaviors.
Array prototype methods
slice
vs splice
In BioShock, splicers are mutant enemies.
Therefore, the splice
method mutates the original array.
shift
vs unshift
unshift works like push.
Function prototype methods
apply
vs call
apply takes an array as second paramater.
String prototype methods
substr vs substring vs slice
index, start, end