logo
logo

Add Method to Object

Beginner

Add Method to Object

Add a method called "calculateSum" to the following object that takes two parameters, "num1" and "num2", and returns the sum of the two numbers.

Console
Submit
Solution
00:00