Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove all spaces javascript

const removeAllSpaces = (string) => {
  const newText = string.replace(/s+/g, "");
  return newText
};

console.log(removeAllSpaces("  Hello  World  "));
//HelloWorld
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #remove #spaces #javascript
ADD COMMENT
Topic
Name
6+5 =