About 88,400 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?

    Apr 21, 2018 · 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 string? …

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

    Mar 7, 2016 · Functionally, it looks like it allows you to nest a variable inside a string without doing concatenation using the + operator. I'm looking for documentation on this feature.

  5. Are ES6 template literals faster than string concatenation?

    Theoretical speaking (unless the JS is compiled), template literals would be slower since the 'string' needs to be parsed regardless of placeholder existence. The JS engine would parse …

  6. is the + operator less performant than StringBuffer.append ()

    The benefits of an array (StringBuffer) are only apparent when you are doing many concatentations. Even then your mileage can very depending on your browser. Here is a …

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

    Browser string optimizations have changed the string concatenation picture. Firefox was the first browser to optimize string concatenation. Beginning with version 1.0, the array technique is …

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

    So I am trying to make a string out of a string and a passed variable (which is a number). How do I do that? I have something like this: function AddBorder(id){ …

  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 - Unexpected string concatenation - Stack Overflow

    Oct 21, 2017 · The only time you would ever need to pad empty strings is if you were trying to ensure that the value you were printing was cast to a string before the concatenation …

Refresh