DEV Community

Discussion on: Enhance your JS Skill by using the correct array method

Collapse
 
codeoz profile image
Code Oz

Hey! I mean accumulator + currentValue but I use += since it will add current value to the current accumulator! it made the same thing but it return the accumulator directly!