diff --git a/08_calculator/calculator.js b/08_calculator/calculator.js index 3b880a9..8928911 100644 --- a/08_calculator/calculator.js +++ b/08_calculator/calculator.js @@ -28,6 +28,7 @@ const multiply = function(numList) { return total; }; +<<<<<<< HEAD const power = function(num, power) { //empty variable for total let total = 1; @@ -37,6 +38,16 @@ const power = function(num, power) { total *= num; } return total; +======= +const power = function(num, pow) { + let total = 1; + + for (i=0; i>>>>>> 0c51ad1a2bf2379e6c83b344ac96ac708d94db1a }; const factorial = function(num) {