Skip to content

Commit

Permalink
refactor for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
shawndrost committed Nov 27, 2012
1 parent d04436d commit a96f84e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions koans/AboutFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ describe("About Functions", function() {
it("should use lexical scoping to synthesise functions", function () {

function makeIncreaseByFunction(increaseByAmount) {
var increaseByFunction = function increaseBy(numberToIncrease) {
return function (numberToIncrease) {
return numberToIncrease + increaseByAmount;
};
return increaseByFunction;
}

var increaseBy3 = makeIncreaseByFunction(3);
Expand Down

0 comments on commit a96f84e

Please sign in to comment.