Skip to content

Instantly share code, notes, and snippets.

@ifkas
Created February 16, 2017 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifkas/2d40deac9d20292d16e357280db9cbdb to your computer and use it in GitHub Desktop.
Save ifkas/2d40deac9d20292d16e357280db9cbdb to your computer and use it in GitHub Desktop.
Test js
// 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