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 to easily customize your break points and check if a specific break point is active via JavaScript: