DEV Community

Discussion on: Functions in JS before learning React

Collapse
 
antoniomvfranco profile image
António Fraco

In reduce example, the argument "current" should be changed to "currentValue" or parameter "currentValue" should be changed to "current".