Make the most of string concatenation


JavaScript generates temporary variables in the background when performing variable concatenation. Due to this, some syntax is more efficient than others and uses less RAM.

Instead of:

a += 'x' + 'y';


a += 'x';
a += 'y';
This best practice should only be applied if it is coherent with your project's specifications.
Under CC-By-NX-SA license