how to remove white space from end in javascript code example Example: javascript whitespace strip yourvariable.trim()