1. parentheses around while-condition (while (condition) { block }) 2. document.write is bad 3. Don't use var for something that is already defined, just use it like x = y 4. No need for parentheses around (repeticion - 1), you can remove them 5. Why parentheses after the name of the variable?
— What, because he hates class syntax?
— Pfft
— Which part?
— He got banned from a few places because apparently "Dog Balls" in a talk wasn't okay
— It starts right around where he bashes class syntax, which I personally agree with haha
— ?
—
(function () { })(); // <-- crockford called this dog balls