Skip to content

Instantly share code, notes, and snippets.

@felixzapata
Created April 8, 2015 07:57
Show Gist options
  • Save felixzapata/c1255e9599e859dad7d8 to your computer and use it in GitHub Desktop.
Save felixzapata/c1255e9599e859dad7d8 to your computer and use it in GitHub Desktop.
Javascript: concat to string at beginning?
// http://stackoverflow.com/questions/6094117/javascript-concat-to-string-at-beginning
mystr = mystr.replace (/^/,'John ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment