Answers for "replace all commas in string javascript"

1

remove commas from string javascript

var purpose = "I, Just, want, a, quick, answer!";

// Removing the first occurrence of a comma
var result = purpose.replace(",", "");

// Removing all the commas
var result = purpose.replace(/,/g, "");
Posted by: Guest on October-23-2020
0

replace all commas in string javascript

string.replace(/,/g, '-');
Posted by: Guest on July-12-2021
0

replace all commas in string javascript

asdfdasfas
Posted by: Guest on June-08-2021

Code answers related to "replace all commas in string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language