title: How to express "max-device-width" and "min-device-width: in JavaScript?
body: <p>If I'm understanding this correctly, <code>screen.width</code> is the JavaScript analogue of </p>
  
  <blockquote>
    <p>device-width</p>
  </blockquote>
  
  <p>in a CSS media query. </p>
  
  <p>What would be correct JavaScript for <code>max-device-width</code> and <code>min-device-width</code>?</p>