SlideShare a Scribd company logo
1 of 8
Download to read offline
Written by Dayi Chen Wow, CLOSURE!
[object Object],[object Object],[object Object]
WHAT IS THE COLSURE A "closure"is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression).
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
HOW TO CREATE A COLSURE ,[object Object],[object Object]
WHY COLSURE ,[object Object],[object Object],[object Object]
OTHERS ,[object Object],[object Object]
Thank You

More Related Content

Similar to Wow! closure in_javascript

Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)Dave Hulbert
 
Benefits of using JavaScript closures
Benefits of using JavaScript closuresBenefits of using JavaScript closures
Benefits of using JavaScript closuresTien Nguyen
 
Fork 3.0 JS improvements
Fork 3.0 JS improvementsFork 3.0 JS improvements
Fork 3.0 JS improvementsFork-CMS
 
Web technologies-course 12.pptx
Web technologies-course 12.pptxWeb technologies-course 12.pptx
Web technologies-course 12.pptxStefan Oprea
 
Web development basics (Part-4)
Web development basics (Part-4)Web development basics (Part-4)
Web development basics (Part-4)Rajat Pratap Singh
 
Introduction to Drools
Introduction to DroolsIntroduction to Drools
Introduction to Droolsgiurca
 
FRONTEND BOOTCAMP Session 2.pptx
FRONTEND BOOTCAMP Session 2.pptxFRONTEND BOOTCAMP Session 2.pptx
FRONTEND BOOTCAMP Session 2.pptxEhtesham46
 
Fundamentals of programming finals.ajang
Fundamentals of programming finals.ajangFundamentals of programming finals.ajang
Fundamentals of programming finals.ajangJaricka Angelyd Marquez
 
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra  SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra Sencha
 
Javascripts hidden treasures BY - https://geekyants.com/
Javascripts hidden treasures            BY  -  https://geekyants.com/Javascripts hidden treasures            BY  -  https://geekyants.com/
Javascripts hidden treasures BY - https://geekyants.com/Geekyants
 
How AngularJS Embraced Traditional Design Patterns
How AngularJS Embraced Traditional Design PatternsHow AngularJS Embraced Traditional Design Patterns
How AngularJS Embraced Traditional Design PatternsRan Mizrahi
 
What is Closure and Its Uses in PHP
 What is Closure and Its Uses in PHP What is Closure and Its Uses in PHP
What is Closure and Its Uses in PHPAndolasoft Inc
 
Java script performance tips
Java script performance tipsJava script performance tips
Java script performance tipsShakti Shrestha
 
Ionic framework one day training
Ionic framework one day trainingIonic framework one day training
Ionic framework one day trainingTroy Miles
 

Similar to Wow! closure in_javascript (20)

jQuery
jQueryjQuery
jQuery
 
Nodejs from zero to hero
Nodejs from zero to heroNodejs from zero to hero
Nodejs from zero to hero
 
Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)Silex and Twig (PHP Dorset talk)
Silex and Twig (PHP Dorset talk)
 
Benefits of using JavaScript closures
Benefits of using JavaScript closuresBenefits of using JavaScript closures
Benefits of using JavaScript closures
 
Fork 3.0 JS improvements
Fork 3.0 JS improvementsFork 3.0 JS improvements
Fork 3.0 JS improvements
 
Fork 3.0 JS improvements
Fork 3.0 JS improvementsFork 3.0 JS improvements
Fork 3.0 JS improvements
 
Andy On Closures
Andy On ClosuresAndy On Closures
Andy On Closures
 
Web technologies-course 12.pptx
Web technologies-course 12.pptxWeb technologies-course 12.pptx
Web technologies-course 12.pptx
 
Web development basics (Part-4)
Web development basics (Part-4)Web development basics (Part-4)
Web development basics (Part-4)
 
Introduction to Drools
Introduction to DroolsIntroduction to Drools
Introduction to Drools
 
FRONTEND BOOTCAMP Session 2.pptx
FRONTEND BOOTCAMP Session 2.pptxFRONTEND BOOTCAMP Session 2.pptx
FRONTEND BOOTCAMP Session 2.pptx
 
Fundamentals of programming finals.ajang
Fundamentals of programming finals.ajangFundamentals of programming finals.ajang
Fundamentals of programming finals.ajang
 
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra  SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra
SenchaCon 2016: Learn the Top 10 Best ES2015 Features - Lee Boonstra
 
Scripting The Dom
Scripting The DomScripting The Dom
Scripting The Dom
 
Javascripts hidden treasures BY - https://geekyants.com/
Javascripts hidden treasures            BY  -  https://geekyants.com/Javascripts hidden treasures            BY  -  https://geekyants.com/
Javascripts hidden treasures BY - https://geekyants.com/
 
How AngularJS Embraced Traditional Design Patterns
How AngularJS Embraced Traditional Design PatternsHow AngularJS Embraced Traditional Design Patterns
How AngularJS Embraced Traditional Design Patterns
 
What is Closure and Its Uses in PHP
 What is Closure and Its Uses in PHP What is Closure and Its Uses in PHP
What is Closure and Its Uses in PHP
 
JS basics
JS basicsJS basics
JS basics
 
Java script performance tips
Java script performance tipsJava script performance tips
Java script performance tips
 
Ionic framework one day training
Ionic framework one day trainingIonic framework one day training
Ionic framework one day training
 

Wow! closure in_javascript

  • 1. Written by Dayi Chen Wow, CLOSURE!
  • 2.
  • 3. WHAT IS THE COLSURE A "closure"is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression).
  • 4.
  • 5.
  • 6.
  • 7.