Return to site

🌍 💚 GREEN IT Developer: Make the most of string concatenation

· greenIT

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';

#greenit #developer #concatenation


All Posts

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!