Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js closure

function aFunc(x){
  return () => console.log( x++ )
}
Source by eyesofkids.gitbooks.io #
 
PREVIOUS NEXT
Tagged: #js #closure
ADD COMMENT
Topic
Name
9+9 =