This document summarizes some common JavaScript pitfalls and provides examples to illustrate them. It begins with a disclaimer that the examples are meant to run in the global scope. It then covers declarations and expressions, issues with touching undeclared variables, undefined properties, variable hoisting, function declarations and expressions, hidden globals, arrays not being sparse, the need to use strict mode, and parentheses operator precedence. It also discusses immediately invoked function expressions (IIFEs) and provides different styles for writing them.