You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workspaces/javascript-leetcode-month/problems/2726-calculator-with-method-chaining/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,8 @@
2
2
3
3
[View Problem on LeetCode](https://leetcode.com/problems/calculator-with-method-chaining/)
4
4
5
+
This problem introduces JavaScript classes, by asking us to implement a simple class that holds one value. The code structure will be similar to classes in Java, C++, and even Python.
6
+
7
+
We'll also have to support "method chaining", which is a fancy way of saying that we shouldn't have any `void` methods, but rather `return this` from all of our mutating methods.
8
+
5
9
Once you've worked on the problem, check out [the full write-up and solution](solution.md)!
0 commit comments