I am attempting to utilize the replace function in JavaScript to substitute a string with multiple $
symbols. However, I am facing an issue where not all of the $
symbols are appearing in the output.
For example:
var b = "abc";
b = b.replace("abc", "$$$");
console.log(b)
Output:
$$