JS menambahkan string ke awal string

var mystr = 'is my name.';
mystr = mystr.replace (/^/,'John ');

console.log(mystr);
 Run code snippet
Glamorous Grasshopper