About 77,900 results
Open links in new tab
  1. How can I build/concatenate strings in JavaScript?

    I'm working on a JavaScript project, and as it's getting bigger, keeping strings in good shape is getting a lot harder. I'm wondering what's the easiest and most conventional way to construct …

  2. javascript - JS strings "+" vs concat method - Stack Overflow

    I have some experience with Java and I know that strings concatenation with "+" operator produces new object. I'd like to know how to do it in JS in the best way, what is the best …

  3. Most efficient way to concatenate strings in JavaScript?

    May 22, 2013 · 214 In JavaScript, I have a loop that has many iterations, and in each iteration, I am creating a huge string with many += operators. Is there a more efficient way to create a …

  4. javascript - Why is string concatenation faster than array join ...

    Update So, in modern browsers string concatenation is optimized so using + signs is faster than using join when you want to concatenate strings. But @Arthur pointed out that join is faster if …

  5. What does ${} (dollar sign and curly braces) mean in a string in ...

    Mar 7, 2016 · What does $ {} (dollar sign and curly braces) mean in a string in JavaScript? Asked 9 years, 9 months ago Modified 1 year, 11 months ago Viewed 425k times

  6. javascript - How do I concatenate a string with a variable? - Stack ...

    In javascript the "+" operator is used to add numbers or to concatenate strings. if one of the operands is a string "+" concatenates, and if it is only numbers it adds them.

  7. javascript - Array Join vs String Concat - Stack Overflow

    Jun 4, 2015 · 2 According to this Google document titled 'Optimizing JavaScript code' string concat is slower then array join but apparently this is not true for modern Javascript engines. I …

  8. Are ES6 template literals faster than string concatenation?

    String concatenation of course is faster. There is no parsing going on. It is just adding to the length of the string. Still I would use template literals.

  9. javascript - ES6 template literals vs. concatenated strings - Stack ...

    Dec 19, 2014 · You basically asking what is the difference between string interpolation vs string concatenation.

  10. JavaScript String concatenation behavior with null or undefined …

    Since there already is Array.prototype.join, modifying the behavior of string concatenation would only cause disadvantages, but no advantages. Moreover, it would break old codes, so it …