Posts for string

Trim() Method for Strings in JavaScript

The trim() method is applied on strings to remove whitespaces from the beginning and end of the string. Whitespaces include space, tabs, no break-spaces and so on. Syntax string.trim(); The method does not take any argument. It is called directly on the string. Return Value The return value of this method is the same string […]

January 7, 2020 in Code examples & Javascript