From db4255dc9219bd404fb2fbc03d8059c0434345fa Mon Sep 17 00:00:00 2001 From: trekitch Date: Wed, 26 Jan 2022 15:04:37 -0500 Subject: [PATCH] changed right name this time --- calculator/calculator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calculator/calculator.js b/calculator/calculator.js index c46b919..c652d5d 100644 --- a/calculator/calculator.js +++ b/calculator/calculator.js @@ -16,12 +16,12 @@ const multiply = function(array) { : 0; }; -const altPower = function(a, b) { +const power = function(a, b) { return Math.pow(a, b); }; //alternate solution using Exponentiation opertator -const power = function(a, b) { +const altPower = function(a, b) { return a ** b; };