String.trim MethodReturns a copy of the string with any leading or trailing spaces removed.object.trim ( ) Arguments
Return ValueThe String.trim method returns a copy of the string with any leading or trailing spaces removed.RemarksThe following example illustrates the use of the String.trim method.Alert(" Hello ".trim()); RequirementsrTrim(), lTrim() |