Asked 21 days ago
21 Nov 2017
Views 33
jassy

jassy posted

how to remove whitespace form string in javascript ?

how to remove white space form string in JavaScript ?

i know trim function

var r="I AM HELLO WORLD";
r.trim();


i want to remove space between word . so is that possible with trim function or we need new function for it which remove white space between word form string in JavaScript ?
Post Answer