From 58819424dbc5bc5d24a8c8dd42576858dd063552 Mon Sep 17 00:00:00 2001 From: Arinze Date: Tue, 23 Jan 2018 21:29:00 +0000 Subject: [PATCH] Done. --- index.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/index.js b/index.js index e69de29..a75d6b6 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,31 @@ +function add(a, b) { + return a + b; +} + +function subtract(a, b) { + return a - b; +} + +function multiply(a, b) { + return a * b; +} + +function divide(a, b) { + return a / b; +} + +function inc(n) { + return ++n; +} + +function dec(n) { + return --n; +} + +function makeInt(n) { + return parseInt(n, 10); +} + +function preserveDecimal(n) { + return parseFloat(n); +} \ No newline at end of file