Answers for "js replace all dots"

22

remove spaces in a string js

str.replace(/\s+/g, '')
Posted by: Guest on April-29-2020
3

js split text on spaces

var string = "text to split";
var words = string.split(" ");
Posted by: Guest on March-23-2020
-1

javascript replace period

var lotsofPeriods="How... are. you?";
var noPeriods = lotsofPeriods.replace(/./g,"");//"How are you?"
Posted by: Guest on August-05-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language