---
title: "Discussion on \"LeetCode Problem 2665 Counter II — LeetCode: 30 Days of JavaScript\" | Hashnode"
description: "Discussion on \"LeetCode Problem 2665 Counter II — LeetCode: 30 Days of JavaScript\". Solving Leetcode 30 Days of JavaScript study plan problems\nProblem:\nWrite a function createCounter. It should accept an initial integer init. It should return an object with three functions.\nThe three functions are:\n\nincrement() increases the current..."
url: "https://hashnode.com/posts/leetcode-problem-2665-counter-ii-leetcode-30-days-of-javascript/6627bb9748f532fdc84caaf8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode Problem 2665 Counter II — LeetCode: 30 Days of JavaScript](https://codebyagatha.hashnode.dev/leetcode-problem-2665-counter-ii-leetcode-30-days-of-javascript?utm_source=hashnode&utm_medium=feed)

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...

Apr 23, 2024 · 2 min read · codebyagatha.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#javascript-learning](https://hashnode.com/tag/javascript-learning)

## Written by

[Agatha Chituwa](https://hashnode.com/@Agatha)

@Agatha

  
[View profile](https://hashnode.com/@Agatha)

I am a computer science student, a novice passionate about open source and would like to get better at JavaScript

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
