JS Adicionar string ao início da string
var mystr = 'is my name.';
mystr = mystr.replace (/^/,'John ');
console.log(mystr);
Run code snippet
Glamorous Grasshopper
var mystr = 'is my name.';
mystr = mystr.replace (/^/,'John ');
console.log(mystr);
Run code snippet