Why do we need currying?



Why do we need currying?..

Answer / Ambesh Hemkar

Currying is a technique in functional programming where a function with multiple arguments is converted into a sequence of functions, each taking one argument. This allows for more flexible and reusable code as it allows us to pass in arguments sequentially. In JavaScript, currying can be achieved by using higher-order functions like .bind().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are the string methods?

1 Answers  


Can you tell me how to send email using javascript?

2 Answers  


What is a function constructor?

1 Answers  


Is there an alternative to javascript?

1 Answers  


In a pop-up browser window, how do you refer to the main browser window that opened it?

1 Answers  


What are the data types supported by javascript?

1 Answers  


What is data type in javascript?

1 Answers  


How much time it will take to learn javascript?

1 Answers  


Why javascript is called as script for all browsers?

1 Answers  


Difference json arrary vs json object ?

1 Answers  


What are the types of data types?

1 Answers  


What is the requirement of debugging in javascript?

1 Answers  


Categories