Examples of most common JavaScript patterns.