ifkas
2/16/2017 - 8:36 PM

Test js

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"));