Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript replace all spaces

var string = "Javascript is fun";
var newString = string.replace(" ", "_");
console.log(newString); // Javascript_is_fun
 
PREVIOUS NEXT
Tagged: #javascript #replace #spaces
ADD COMMENT
Topic
Name
7+6 =