1. matchMedia

    API for finding out whether or not a media query applies to the document.

  2. window api: matchmedia