JavaScript trim

JavaScript TRIM Function

The JavaScript trim function is a String function used to remove the empty spaces from both the Right-hand side and Left-hand side. The syntax of the JavaScript Trim string function to remove leading and trailing whitespaces is String_Object.trim() JavaScript trim Function Example The following set of examples will help you understand how to use a … Read more