How to Changetext on window resize with jquery
<p>I want to change my text by the current browser width size without having to use refresh like mediaqueries.</p>

<p>I have this code,
It doesnt work, what am i doing wrong?</p>

<pre><code> function checkSize() {
   //small-screen
    if (window.innerWidth &lt; 1200) {
       $("#hello-world").html("Hello World");
    }
    //end small-screen
   }

  checkSize();

$(window).resize(function() {
 checkSize();
 });
</code></pre>
