From 9b61382091cce13268e87852155db1b73fd5fc56 Mon Sep 17 00:00:00 2001 From: Kyle Samuel Date: Wed, 3 Feb 2021 22:11:02 +0000 Subject: [PATCH] Done. --- index.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/index.js b/index.js index e69de29bb2..61492380af 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,27 @@ +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); +} \ No newline at end of file