[JavaScript] : 자바스크립트를 활용한 간단한 계산 시스템
const calculator = { plus: function (a, b) { return a + b; }, minus: function (a, b) { return a - b; }, times: function (a, b) { return a * b; }, divide: function (a, b) { return a / b; }, power: function (a, b) { return a ** b; }, }; const plusResult = calculator.plus(2, 3); const minusResult = calculator.minus(plusResult, 10); const timesResult = calculator.times(10, minusResult); const divide..
2022. 1. 27.