Created
February 16, 2017 20:36
-
-
Save ifkas/2d40deac9d20292d16e357280db9cbdb to your computer and use it in GitHub Desktop.
Test js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example with parameters only, no variable in scope and anonymous inner function | |
function orange(color) { | |
return function(brand) { | |
return "The oranges are with " + color + " color, but the computer brand can be " + brand; | |
} | |
} | |
var coloring = orange("orange"); // we can also | |
console.log(coloring("apple")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment