Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

JavaScript: Using lambda functions

Share this post!
 Vote this!

JavaScript has a nice feature that allows you to create anonymous functions and assign them to variables (also called lambda functions or lambda calculus). This can be used to do things like create functions that dynamically create other functions and return them as a result to be used in other parts of the script. This may be used to create very complex scripts, but the concepts are easy to understand and it's even very useful when programming in JavaScript.

Let's begin with a "normal" JavaScript function: more...

0 comments:

Post a Comment