title: How to detect the last 2 words using Javascript?
body: <p>Hi sorry for the simple question but how can I detect the last two words in the String?</p>
  
  <p>Let say I have this var:</p>
  
  <pre><code>var sample = "Hello World my first website";
  </code></pre>
  
  <p>How can I get the last two words dynamical. I tried the split().pop but only the last word is getting </p>
  
  <pre><code>var testing = sample.split(" ").pop();
  console.log(testing)
  </code></pre>