Sign In
Curriculum
Calculator
Mark as Completed
Calculator
Create an object called
calculator
with properties
add
,
subtract
,
multiply
, and
divide
, each of which is an arrow function that takes in two numbers and performs the corresponding operation. Use the object literal syntax.
Click to go back
Click to go forward
Refresh preview
Console
Submit
Solution
00:00
Previous Lesson
Next Lesson