title: How to wrap in span last three words from string / heading
body: <p>I am trying to wrap last three words from string that will be a heading on site. I am trying with split method and with pop but not getting it.</p>
  <pre><code> var text = &quot;This is an example text sentence&quot;
  </code></pre>
  <p>i would like to look in html like this
  This is an an example text sentence</p>
  <pre><code>var split = text.split(&quot; &quot;);
  var last = split.pop() // but it gives me only the last word 
  
  text.join(&quot; &quot;) + (text.length &gt; 0 ?
  ' &lt;span class=&quot;text-stroke&quot;&gt;' + last + &quot;&lt;/span&gt;&quot; : last)
  </code></pre>