Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js add string to beginning of string

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

console.log(mystr);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #add #string #beginning #string
ADD COMMENT
Topic
Name
4+5 =