DEV Community

Discussion on: Functional Programming in JavaScript? Yes, Please.

Collapse
 
oreillyross_50 profile image
Faktor 10

Thanks Tiffany great article. Javascript is a great language for FP, I am loving learning FP with Javascript.

I had one (hopefully constructive) comment, is there a reason you use let as oppose to const? For me const is more intuitive given the FP immutability aspect. Just a thought if the aim is to make code as readable as possible. I believe .filter() returns a new array.

Collapse
 
tiffany profile image
tiff

I thought about using const when doing this but wasn't sure I should. I will change it.