Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Contact us
Hide Buttons

Category: Advance

0

Closures: javascript interview question

Problem Write a function sum which can accept both the syntax. sum(5, 3) // 8 sum(5)(3) // 8 Logic Whenever the sum is called we need to detect if its called with two arguments...