var mystr = "Doe";
mystr = "John " + mystr;
Wouldn’t this work for you?
More Related Contents:
- Fastest method to escape HTML tags as HTML entities?
- What’s the best way to convert a number to a string in JavaScript?
- Most efficient way to concatenate strings in JavaScript?
- Efficient Javascript String Replacement
- Are ES6 template literals faster than string concatenation?
- Convert JSON to array in Javascript
- How do I make the first letter of a string uppercase in JavaScript?
- How do I replace a character at a particular index in JavaScript?
- Trim string in JavaScript?
- How to count string occurrence in string?
- Declaring multiple variables in JavaScript
- What is the correct way to check for string equality in JavaScript?
- How to find if an array contains a specific string in JavaScript/jQuery?
- Check for special characters in string
- Contains case insensitive
- Regular expression which matches a pattern, or is an empty string
- Finding all indexes of a specified character within a string
- How to build query string with Javascript
- Does use of anonymous functions affect performance?
- Recursively print all permutations of a string (Javascript)
- Is there a performance difference between ‘let’ and ‘var’ in JavaScript
- Are JavaScript Arrays actually implemented as arrays?
- Is “Put Scripts at the Bottom” Correct? [closed]
- Javascript string comparison fails when comparing unicode characters
- Find the characters in a string which are not duplicated
- jQuery call function from a string [duplicate]
- HEX to Base64 converter for JavaScript
- How Can I Truncate A String In jQuery?
- How to test if a URL string is absolute or relative?
- Split a string, at every nth position, with JavaScript? [duplicate]