Posts Tagged ‘functions’

Functions as First Class Citizens in Javascript

July 31st, 2015 3 Comments

In Javascript we are lucky. We get the ability to pass functions around, our functions can even return functions. And this is great. As a teacher, one thing I find is that this idea confuses people learning the language. Functions are a bit of an abstract concept. So I wanted to go over a few things we can do with functions in regards to passing them around and playing with them!

This is focused for people just learning the language. Yet if you have been writing JS for a while, you might learn a thing of two as well!

(more…)