remove commas and dollar sign from string js

var stringWithCommas = 'a,b,c,d';
var stringWithoutCommas = stringWithCommas.replace(/,/g, '');
console.log(stringWithoutCommas);

3.6
5
Krish 100200 points

                                    parseFloat('$148,326.00'.replace(/\$|,/g, ''))

3.6 (5 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
removing commas from a string javascript remove comma and rupee symbol in javascript remove commas in string js js string remove comma character remove all commas and dollar signs from a string in js remove all commas from a string in js remove commas javascript remove what inside of commas javascript strip commas string javascript how to get rid of commas in a string javascript how to remove commas in a string in javascript remove commas and symbols js remove commas and special characters from a string js Javascript remove Commas from Number javascript javascript remove commas from number js remove comma from string remove the commas in a string javascript how to remove commas from a string javascript javascript remove commas from string remove commas from a string javascript javascript remove comma from string js remove commas from string javascript remove dollar sign and comma from string js remove commas from number how to remove comma from string js how to remove all commas from a string in javascript js remove symbols after comma remove commas js example remove commas js remove comma and currency symbol javascript javascript remove all commas from string remove commas from string javascript remove commas in string javascript js remove commas how to remove comma and $ sign in a string in javascript how to remove commas from numbers in js how to remove commas from numbers in javasacript remove commas from string in javascript javascript remove currency symbol how to remove a dollar sign and comma from a string in javascript regex replace dollar sing and comma remove dollar sign and comma from string javascript remove commas and dollar sign from string js
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source