title: How to get the last part of a string in JavaScript?
body: <p>My url will look like this:</p>
  
  <p><a href="http://www.example.com/category/action" rel="noreferrer">http://www.example.com/category/action</a></p>
  
  <p>How can I get the word "action". This last part of the url (after the last forward slash "/") will be different each time. So whether its "action" or "adventure", etc. how can I always get the word after the last closing forward slash?</p>