From f7e481895a6ed5b85bf3ab6de7cb73993ec21d3b Mon Sep 17 00:00:00 2001 From: Derrek Gass Date: Fri, 16 Oct 2020 14:27:25 -0700 Subject: [PATCH] nothing --- solutions/day-03/index.js | 12 ------------ solutions/day-03/math.js | 12 ------------ 2 files changed, 24 deletions(-) delete mode 100644 solutions/day-03/index.js delete mode 100644 solutions/day-03/math.js diff --git a/solutions/day-03/index.js b/solutions/day-03/index.js deleted file mode 100644 index e6c5588..0000000 --- a/solutions/day-03/index.js +++ /dev/null @@ -1,12 +0,0 @@ -// index.js -// to import the doSomeMath from the math.js with or without extension -import doSomeMath from './math.js' - -// to import the other modules -// since these modules were not exported as default we have to desctructure -import { addTwo, multiply, subtract } from './math.js' - -import * as everything from './math.js' // to import everything remaining -console.log(addTwo(5, 5)) -console.log(doSomeMath.addTwo(5, 5)) -console.log(everything) \ No newline at end of file diff --git a/solutions/day-03/math.js b/solutions/day-03/math.js deleted file mode 100644 index 6a52f74..0000000 --- a/solutions/day-03/math.js +++ /dev/null @@ -1,12 +0,0 @@ -// math.js -export const addTwo = (a, b) => a + b -export const multiply = (a, b) => a * b -export const subtract = (a, b) => a - b - -export default (function doSomeMath() { - return { - addTwo, - multiply, - subtract, - } -})() \ No newline at end of file