From 58f7cb5852b3426e6e86905c797ee294fd44b54e Mon Sep 17 00:00:00 2001 From: Soumya Anantha Padmanabha Date: Mon, 5 Feb 2018 22:40:52 +0000 Subject: [PATCH] Done. --- index.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/index.js b/index.js index e69de29..30a2110 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,24 @@ +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+=1; +} +function dec(n){ + return n-=1; +} +function makeInt(n){ + return parseInt(n,10) +} +function preserveDecimal(n){ + return parseFloat(n,10) +}