From 8196f9201882891a10159d57359ff751f6957816 Mon Sep 17 00:00:00 2001 From: JohannesDev Date: Fri, 2 Oct 2020 10:11:39 +0200 Subject: [PATCH] Add power function --- index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 80bb5fe..562f82d 100644 --- a/index.js +++ b/index.js @@ -12,8 +12,15 @@ function divide(a, b) { return a / b; } +function power(a, b) { + return Math.pow(a, b) +} + + + module.exports = { add, subtract, - divide -}; \ No newline at end of file + divide, + power +} \ No newline at end of file