Prepend text to beginning of string

mate64 picture mate64 · May 23, 2011 · Viewed 140.9k times · Source

What is the fastest method, to add a new value at the beginning of a string?

Answer

Thor Jacobsen picture Thor Jacobsen · May 23, 2011
var mystr = "Doe";
mystr = "John " + mystr;

Wouldn't this work for you?