title: How to trim a string after a specific character in javascript
body: <p>I'm having a string like "image.jpg". I want to save the image with its name, so i need to trim the image extension. Any methods in javascript to achieve that.</p>