MDN has the following to say about string.concat()
:
It is strongly recommended to use the string concatenation operators
(+, +=) instead of this method for perfomance reasons
Also see the link by @Bergi.
More Related Contents:
- Access denied for user ‘admin’@’localhost’ (using password: YES) sql exception
- ECMAScript 6 arrow function that returns an object
- How do I prevent a parent’s onclick event from firing when a child anchor is clicked?
- Sort array by firstname (alphabetically) in Javascript [duplicate]
- How can I use multiple refs for an array of elements with hooks?
- Textarea Auto height [duplicate]
- JavaScript: Collision detection
- How to loop through selected elements with document.querySelectorAll
- Refresh Page and Keep Scroll Position
- Difference between jQuery `click`, `bind`, `live`, `delegate`, `trigger` and `on` functions (with an example)?
- How to invoke Objective-C method from Javascript and send back data to Javascript in iOS?
- Uncaught TypeError: Cannot read property ‘msie’ of undefined – jQuery tools
- How do I reset the scale/zoom of a web app on an orientation change on the iPhone?
- How to get element in user-agent shadow root with JavaScript?
- How do you create a custom adapter for ember.js?
- Addeventlistener with ajax not working well
- What is the Proper Way to Destroy a Map Instance?
- Three.js / WebGL – transparent planes hiding other planes behind them
- Angular 6: HTML table create dynamic columns and rows
- Index an array of arrays with an array of indexes in javascript
- How can I modify the XMLHttpRequest responsetext received by another function?
- Issue with window.close and chrome
- Javascript console.log(object) vs. concatenating string
- How to get the html of a div on another page with jQuery ajax?
- Detect if an alert or confirm is displayed on a page
- How to create a sleep/delay in nodejs that is Blocking?
- How do I listen for triple clicks in JavaScript?
- How to make only some text in a text-box read-only while allowing the rest to be edited
- d3.js histogram with positive and negative values
- WebSocket: How to automatically reconnect after it dies