I wrote that solution, so I would recommend it
The advanced version of that solution with the initialization on the sum is here
https://forum.freecodecamp.org/t/javascript-performance-measurement-variability/394059
I wrote that solution, so I would recommend it
The advanced version of that solution with the initialization on the sum is here
https://forum.freecodecamp.org/t/javascript-performance-measurement-variability/394059