diff --git a/calculator.html b/calculator.html index 83f569b..8160564 100644 --- a/calculator.html +++ b/calculator.html @@ -85,6 +85,10 @@ grid-gap: 20px; padding: 20px; } + .num { + color: #000; + background-color: #FFD9F2; + } @@ -95,28 +99,28 @@
- - - - + + + + - - - + + + - - - + + + - - - + + + - - + + @@ -126,4 +130,4 @@ - \ No newline at end of file + diff --git a/task.js b/task.js index afea252..7bbabd0 100644 --- a/task.js +++ b/task.js @@ -10,6 +10,10 @@ const performCalculation = { '+': (firstOperand, secondOperand) => firstOperand + secondOperand, '-': (firstOperand, secondOperand) => firstOperand - secondOperand, + + '*': (firstOperand, secondOperand) => firstOperand * secondOperand, + + '/': (firstOperand, secondOperand) => firstOperand / secondOperand, '=': (firstOperand, secondOperand) => secondOperand }; @@ -103,4 +107,4 @@ keys.addEventListener('click', (event) => { inputDigit(target.value); updateDisplay(); -}); \ No newline at end of file +});