What is the fastest method, to add a new value at the beginning of a string?
Advertisement
Answer
JavaScript
x
3
1
var mystr = "Doe";
2
mystr = "John " + mystr;
3
Wouldn’t this work for you?
What is the fastest method, to add a new value at the beginning of a string?
var mystr = "Doe";
mystr = "John " + mystr;
Wouldn’t this work for you?