Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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, "");
Source by oamatech.com #
 
PREVIOUS NEXT
Tagged: #remove #commas #string #javascript
ADD COMMENT
Topic
Name
9+9 =