---
title: "Discussion on \"Currying in JavaScript\" | Hashnode"
description: "Discussion on \"Currying in JavaScript\". Pre-requisites: Closures in JavaScript.\nCurrying is used to make the lighter version of the existing function. Its implementation will make the function shorter by taking the multiple parameters one at a time into a sequence of functions and making i..."
url: "https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Currying in JavaScript](https://alishabhale.hashnode.dev/currying-in-javascript?utm_source=hashnode&utm_medium=feed)

Pre-requisites: Closures in JavaScript. Currying is used to make the lighter version of the existing function. Its implementation will make the function shorter by taking the multiple parameters one at a time into a sequence of functions and making i...

Mar 10, 2023 · 2 min read · alishabhale.hashnode.dev  
Updated Sep 6, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#currying](https://hashnode.com/tag/currying)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)

## Written by

[Alisha Bhale](https://hashnode.com/@alishabhale)

@alishabhale · India

  
[View profile](https://hashnode.com/@alishabhale)

Front-end Developer

## Responses 4

Markdown supported · ⌘↵ to post

[Favourite Jome](https://hashnode.com/@Favourite)

[Sep 6, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/64f86a00c035cd988c32277f)

Though I'm aware of Currying in JS, but I've never used it I think. I'd keep it in mind from now on and if there's a use case for me to use this pattern, I will.

Thanks for sharing!

[Alisha Bhale](https://hashnode.com/@alishabhale)

[Sep 6, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/64f86a00c035cd988c32277f#reply-64f88d65c035cd988c322c08)

You're welcome! It's great to hear that you're open to exploring and potentially using currying in JavaScript in the future. Currying can be a powerful technique for creating more modular and reusable code, especially when dealing with functions that take multiple arguments. If you ever come across a situation where you think currying might be beneficial, don't hesitate to give it a try. Feel free to reach out if you have any questions or need further guidance when you decide to delve into currying in JavaScript. Happy coding!

[Favourite Jome](https://hashnode.com/@Favourite)

[Sep 6, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/64f86a00c035cd988c32277f#reply-64f88fd4c035cd988c322c42)

Thanks [Alisha Bhale](https://hashnode.com/@abhale)

[Saswat Das](https://hashnode.com/@sas231)

[Mar 17, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/641451dabdb25cbbdb03b3e9)

Super informative and very nicely written. Will definitely try this out

[Alisha Bhale](https://hashnode.com/@alishabhale)

[Mar 18, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/641451dabdb25cbbdb03b3e9#reply-6415ab00f94a99cca7bd6234)

Thanks, Saswat : )

[Pratiksha Karpe](https://hashnode.com/@Pratiksha123)

[Mar 16, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/64132f6f9d169baf8ff683d8)

Good to see this. Keep it up!!!

[Alisha Bhale](https://hashnode.com/@alishabhale)

[Mar 16, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/64132f6f9d169baf8ff683d8#reply-64134472a22636ad25b265f7)

Thanks : )

[Manjit Latthe](https://hashnode.com/@Maniit)

[Mar 11, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/640c7ca2bb3a23383179ff02)

Nice to see, something new after so many days. One query, what could be the default values of these parameters?

[Alisha Bhale](https://hashnode.com/@alishabhale)

[Mar 16, 2023](https://hashnode.com/posts/currying-in-javascript/640ab74bd91d81c6f210a7ad/comment/640c7ca2bb3a23383179ff02#reply-64133374a22636ad25b2634a)

Hi Manjit, thank you for your response, here the default value of parameters is typically null or undefined, I hope this helps!
