Skip to content

Week03 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
step3 done!
  • Loading branch information
EliaYazdi committed Aug 3, 2019
commit e1f4d40757c94dc2ae5b8da00f280046feb68a60
9 changes: 6 additions & 3 deletions Week3/homework/step3.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
'use strict';

function createBase(base) {
// Replace this comment and the next line with your code
console.log(base);

const addNum = function (num) {
return base + num;
};
return addNum;
}

const addSix = createBase(6);
Expand All @@ -11,4 +14,4 @@ console.log(addSix(10)); // returns 16
console.log(addSix(21)); // returns 27

// Do not change or remove anything below this line
module.exports = createBase;
module.exports = createBase;
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy