From cd2fbb20ee0ce941e1e330861aba408cbdebd7c7 Mon Sep 17 00:00:00 2001 From: proactive-callee-1012 Date: Wed, 23 Dec 2020 02:52:48 +0000 Subject: [PATCH] Done. --- index.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/index.js b/index.js index e69de29bb2..49ca6246fc 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,28 @@ +var a, b; +a = Math.floor(Math.random() * 1000); +b = Math.floor(Math.random() * 1000); + +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