From 2fb2e9b91c498abe506bc7b661cb93405bfb012c Mon Sep 17 00:00:00 2001 From: Smrita Bhetwal Date: Thu, 3 May 2018 17:18:32 +0000 Subject: [PATCH] Done. --- index.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/index.js b/index.js index e69de29..b4132a2 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,35 @@ +function makeInt(n){ + var num = parseInt(n, 10) + return num +} + + +function preserveDecimal(n){ + return parseFloat(n) +} + +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){ + n++ + return n +} + +function dec(n){ + n-- + return n +} \ No newline at end of file