String concatenation vs string buffers in Javascript

后端 未结 7 2030
清酒与你
清酒与你 2020-12-24 14:24

I was reading this book - Professional Javascript for Web Developers where the author mentions string concatenation is an expensive operation compared to using an array to s

7条回答
  •  遥遥无期
    2020-12-24 14:56

    **EDIT: I assume people are still viewing this post--but it has been 3+ years, so it is in your best interest to just view: http://jsperf.com/string-concatenation/14

    View the changes of this post to see what it used to say.

提交回复
热议问题