How to get the last word of a sentence using Jquery <p>How can I get the last word of a sentence in Jquery?</p> <p><strong>Eg:</strong> <code>get the last word of a sentence</code> should return <code>sentence</code></p> <p><code>get the last word</code> should return <code>word</code></p>