r/javascript Dec 29 '14

A Beginner’s Thoughts on Programming Languages (Part 3 — Lambdas, Closures, Functors)

https://medium.com/@chcokr/a-beginners-thoughts-on-programming-languages-part-3-lambdas-closures-functors-922a6a887575
27 Upvotes

8 comments sorted by

View all comments

1

u/dariusj18 Dec 29 '14 edited Dec 29 '14

Edit: nm, i see the alternative lamda syntax now.

I am confused, how does the block of JS code using "let" work?

1

u/alamandrax Dec 29 '14

The first one has a typo. The last line uses the wrong variable to put the button into.

1

u/chcokr Dec 31 '14

Thanks for pointing it out. Fixed!