Use Self-Executing JavaScript Functions for Code Isolation

When you first start learning JavaScript, you focus on getting down the basics. Then, after you work with JavaScript for a while, you learn more about variable scoping and the importance of isolating and protecting your code from outside influences. What is variable scoping? Variable scope refers to the context within which a variable is…… Read More

Breakpoint Aware JavaScript for Responsive Design

Supporting responsive design across all the handheld devices that are available today means that most websites use CSS media queries to set break points; typically for mobile, tablet and desktop. When JavaScript interactions come into play, sometimes your JavaScript code should be aware of the break points available in CSS. The code below allows you…… Read More