title: Run code if screen has certain width
body: <p>I'm just trying to write a message in the console when the size of the window is less than 700 px.</p>
  
  <p>The things I have tried is:</p>
  
  <pre><code>if(window.innerWidth &lt; 700){
  console.log("hello");
  }
  </code></pre>
  
  <p>And</p>
  
  <pre><code>if(screen.width &lt; 700){
  console.log("hello");
  }
  </code></pre>
  
  <p>I don't get any error meassages but the code doesn't run. If I ad "px" after the 700 I get the error meassage "Uncaught SyntaxError: Unexpected identifier".</p>