- Add all snippets to your source (css, js);
- Invoke the mixin inside your css @include breakpoints-for-javascript;;
- Call the function breakpoint()and test the result against the strings (mobile|tablet|desktop|large);
i.e: breakpoint() === 'mobile'