[기본문법 6] return
// returns 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); console.log(plusResult); // Returns const age = 96; function calculateKrAge(ageOfForeigner) { retur..
2023. 2. 9.