DEV Community

Discussion on: Functional programming basics part 1: Pure function

Collapse
 
theodesp profile image
Theofanis Despoudis

Currently this is not valid Javascript:

const addYtoX(x, y) => x + y

But this is:
const addYtoX = (x, y) => x + y

Collapse
 
ysael profile image
ysael pepin

oups! I just corrected that, thanks a lot!