1. matchMedia

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

  2. Window API: matchMedia