DEV Community

Discussion on: Three methods that you should know - JavaScript

Collapse
 
ifkas profile image
Ivo Culic • Edited

Hi there, last screenshot you have a typo?
const nameQuantity = name.reduce should be const nameQuantity = names.reduce you always reduce the array.

Collapse
 
arvprincipe profile image
Alex Principe

You're right! it was my mistake. Thank you @ivo Culic

I've already corrected it.