title: Searching for a last word in JavaScript
body: <p>I am doing some logic for the last word that is on the sentence. Words are separated by either <strong>space or with a '-' character</strong>.</p>
  
  <p>What is easiest way to get it?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I could do it by traversing backwards from the end of the sentence, but I would like to find better way</p>