JS Dodaj ciąg do początku ciągu
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