LeetCode Problem 2665 Counter II — LeetCode: 30 Days of JavaScript
Solving Leetcode 30 Days of JavaScript study plan problems
Problem:
Write a function createCounter. It should accept an initial integer init. It should return an object with three functions.
The three functions are:
increment() increases the current...
codebyagatha.hashnode.dev2 min read