DEV Community

Understanding Closures in JavaScript (With Delicious Mexican Food)

Sergio Mendoza on September 21, 2017

Closures are something we are sure to encounter everyday in our JavaScript programs. So I wanted to come up with a simple and practical example to ...
Collapse
 
mafzst profile image
Nicolas Perraut

So we can also call takeOrder('taco') ('chicken')?

Collapse
 
misterwhat profile image
Jonas Winzen

Yes, of course!

Collapse
 
spaceviator profile image
Kleber Perez

TakeOrder('taco','chicken','etc..')