How do I replace the first character of a string with another character? I am casting the number as string.
Example: String 12341 New string: 92341
I tried this script but cant figure a way to only replace the first character.
var oldStr =12341;
var newStr = oldStr.replace(1, 9);