From 41399701f07cd4d8bacea7df929707449be43caa Mon Sep 17 00:00:00 2001 From: Ciara Giron <ciarajg@yahoo.com> Date: Sun, 7 Feb 2021 04:43:18 +0000 Subject: [PATCH] Done. --- index.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/index.js b/index.js index e69de29bb2..b58d30cd7c 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 increment(n) { + return n + 1; +} + +function decrement(n) { + return n - 1; +} + +function makeInt(n) { + return parseInt(n, 10); +} + +function preserveDecimal(n) { + return parseFloat(n); +}