DEV Community

Discussion on: Three methods that you should know - JavaScript

ifkas profile image
Ivo Culic • Edited on

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

arvprincipe profile image
Alex Principe Author

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

I've already corrected it.