Lad Who Codes

Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts

Implementing Trim Function in JavaScript

Posted by Dinesh Verma on Friday, 17 August 2018

One of the best things I like about JavaScript is that fact that it is highly extensible. You can easily extend classes, override methods and do things which are not initially supported by JavaScript. In today's tutorial we will be implementing a trim function that not only trims spaces from both ends of string, but also trims the passed parameter string.