From 404c8d04f86b593e8fe4f55539ef0e51dc597b91 Mon Sep 17 00:00:00 2001 From: Thomas Regulski Date: Fri, 11 Dec 2020 00:35:44 +0000 Subject: [PATCH] Done. --- index.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/index.js b/index.js index e69de29bb2..c524b41928 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,33 @@ +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) { + n++ + return n +} + +function decrement(n) { + n-- + return n +} + +function makeInt(n) { + return parseInt(n, 10) +} + +function preserveDecimal(n) { + return parseFloat(n) +}