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';
write:
a += 'x';
a += 'y';
This best practice should only be applied if it is coherent with your project's specifications.