DEV Community

Discussion on: Do you really know JS?

Collapse
 
strdr4605 profile image
Dragoș Străinu • Edited

I think 4 out of 6 is a good score!

Bonus task:
Make a function that satisfies these conditions!

fn(1)(2)(3)(4) == 10 // true
fn(1)(2) == 3 // true
fn(1)(0)(0)(0)(0)(3) == 4 // true
fn(1) == 1 // true