DEV Community

Discussion on: What is Currying In JavaScript Is and How to Use It

Collapse
 
awesomeironman profile image
Cyrus Gracias

While I like your article, it's explanation is targeted towards beginners, code examples in this article have certain mistakes.
Please update this article's code examples since they might confuse beginners.
Here are some mistakes + suggestions:

  1. Use console logs and then show output comments.
  2. You are calling main functions instead of calling the returned function in first few examples
Collapse
 
alexdevero profile image
Alex Devero

Hi Cyras.

  1. I will use more console.log() statements. So far, I've been using them implicitly when running the code. I often didn't include them in the examples. I will make sure to that for the future posts.
  2. Thank you for that. I got a bit lost in multiple snippets of code and used wrong identifier. My mistake. Thank you for pointing this out.