Fisher-Yates Shuffling it’s an algorithm to shuffle an array.
Suppose you have a couple of variables with unknown types and you want to concatenate them in a string. To be sure that the arithmetical operation is not be applied during concatenation, use concat
~~X is usually a faster
Math.trunc(X), but can also make your code do nasty things.
In node, you can tell your program to do two different things depending on whether the code is run from
node something.js. This is useful if you want to interact with one of your modules independently.