In JavaScript, I have strings like:
"US$ 43,22"
"$ 2,44"
And I need to find the first space and cut the left content to have something like this:
"43,22"
"2,44"
Anyone knows how to do it? The point here is find the space.
Thank's very much in advance!
EDIT:
If I do:
console.log(retrievedPrice); //Have "US$ 35,88"
let priceWithoutCurrency = retrievedPrice.substr(retrievedPrice.indexOf(' ') + 1);
console.log(priceWithoutCurrency); //I have the same: "US$ 35,88"
Why?