A JavaScript pattern and antipattern code collection that covers function patterns, jQuery patterns, design patterns, general patterns, literals and constructor patterns (upcoming), object creation patterns (upcoming), code reuse patterns (upcoming), DOM and browser patterns (upcoming).

Function Patterns

API Patterns

  • Callback patterns - when you pass function A to function B as a parameter, function A is a callback function

Additional text has been truncated due to copyright reasons. Things without URLs and private things don't get truncated.