From fb5a74742621f6ca45ccbafd9c3215fe48789212 Mon Sep 17 00:00:00 2001 From: THINH NGUYEN Date: Sun, 21 Jan 2018 00:04:06 +0000 Subject: [PATCH] Done. --- index.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/index.js b/index.js index e69de29..5763e9f 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,32 @@ +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) +} +