DEV Community

Discussion on: Let's optimize JavaScript - password generator (2.15x faster)

nombrekeff profile image

I though that too, but I did some benchmarks, and found out concat to perform a bit faster than +=. It was not the most extensive benchmark, and it might vary from browser to browser and such... but would be interesting to know though