Im trying to replace special character with null within SSJS. here is what i tried:
<script runat="server">
Platform.Load("core","1.1.5");
var listingPrice1 = '$123,456,00';
listingPrice1 = listingPrice1.replace(',', '').replace('.', '');
</script>
however, there is an error pop out:
Object expected: replace Line: 16 Char: 3 listingPrice1 = listingPrice1.replace(',', '').replace('.', '')
Exception of type 'Jint.Native.JsException' was thrown.
is ssjs not support replace()?