From cc22ed3592946b9173832923eaae9d81a0dc2f7f Mon Sep 17 00:00:00 2001 From: Gabrielle Piacentile Date: Mon, 7 Dec 2020 22:15:13 +0000 Subject: [PATCH] Done. --- index.js | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/index.js b/index.js index e69de29bb2..a95bad3c19 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,46 @@ +function add(){} +function subtract(){} +function multiply(){} +function divide(){} + +var number + +function add(a, b){ + number = a + b + return number +} + +function subtract(a, b){ + number= a - b + return number +} + +function multiply(a, b){ + number= a * b + return number +} + +function divide(a, b){ + number= a / b + return number +} + +function increment(a){ + number = a + 1 + return number +} + +function decrement(a){ + number = a - 1 + return number +} + +function makeInt(a){ + number = parseInt(a, 10) + return number +} + +function preserveDecimal(a){ + number = parseFloat(a, 10) + return number +}