Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 104 additions & 74 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ git clone https://github.com/yourusername/30-days-of-javascript.git
cd 30-days-of-javascript

# Run any solution
node closures/2667.js
node "01 Closures/2809-create-hello-world-function.js"
```

## 📚 Problems
Expand All @@ -48,33 +48,33 @@ node closures/2667.js
<th width="100">LeetCode #</th>
<th width="100">Difficulty</th>
<th>Problem</th>
<th width="100">Solution</th>
<th width="140">Solution</th>
</tr>
</thead>
<tbody>
<tr>
<td>2667</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/create-hello-world-function/description/?envType=study-plan-v2&envId=30-days-of-javascript">Create Hello World Function</a></td>
<td><a href="closures/2809-create-hello-world-function.js">Code</a></td>
<td><a href="https://leetcode.com/problems/create-hello-world-function/">Create Hello World Function</a></td>
<td><a href="01%20Closures/2809-create-hello-world-function.js">Code</a></td>
</tr>
<tr>
<td>2620</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/counter/description/?envType=study-plan-v2&envId=30-days-of-javascript">Counter</a></td>
<td><a href="closures/2732-counter.js">Code</a></td>
<td><a href="https://leetcode.com/problems/counter/">Counter</a></td>
<td><a href="01%20Closures/2732-counter.js">Code</a></td>
</tr>
<tr>
<td>2704</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/to-be-or-not-to-be/?envType=study-plan-v2&envId=30-days-of-javascript">To Be Or Not To Be</a></td>
<td><a href="closures/2813-to-be-or-not-to-be.js ">Code</a></td>
<td><a href="https://leetcode.com/problems/to-be-or-not-to-be/">To Be Or Not To Be</a></td>
<td><a href="01%20Closures/2813-to-be-or-not-to-be.js">Code</a></td>
</tr>
<tr>
<td>2665</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/counter-ii/description/?envType=study-plan-v2&envId=30-days-of-javascript">Counter II</a></td>
<td><a href="closures/2789-counter-ii.js">Code</a></td>
<td><a href="https://leetcode.com/problems/counter-ii/">Counter II</a></td>
<td><a href="01%20Closures/2789-counter-ii.js">Code</a></td>
</tr>
</tbody>
</table>
Expand All @@ -86,65 +86,71 @@ node closures/2667.js
<th width="100">LeetCode #</th>
<th width="100">Difficulty</th>
<th>Problem</th>
<th width="100">Solution</th>
<th width="140">Solution</th>
</tr>
</thead>
<tbody>
<tr>
<td>2635</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/apply-transform-over-each-element-in-array/description/?envType=study-plan-v2&envId=30-days-of-javascript">Apply Transform Over Each Element in Array</a></td>
<td><a href="basic-array-transformations/2635.js">Code</a></td>
<td><a href="https://leetcode.com/problems/apply-transform-over-each-element-in-array/">Apply Transform Over Each Element in Array</a></td>
<td><a href="02%20Basic%20Array%20Transformations/2747-apply-transform-over-each-element-in-array.js">Code</a></td>
</tr>
<tr>
<td>2634</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/filter-elements-from-array/description/?envType=study-plan-v2&envId=30-days-of-javascript">Filter Elements from Array</a></td>
<td><a href="basic-array-transformations/2634.js">Code</a></td>
<td><a href="https://leetcode.com/problems/filter-elements-from-array/">Filter Elements from Array</a></td>
<td><a href="02%20Basic%20Array%20Transformations/2746-filter-elements-from-array.js">Code</a></td>
</tr>
<tr>
<td>2626</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/array-reduce-transformation/description/?envType=study-plan-v2&envId=30-days-of-javascript">Array Reduce Transformation</a></td>
<td><a href="basic-array-transformations/2626.js">Code</a></td>
<td><a href="https://leetcode.com/problems/array-reduce-transformation/">Array Reduce Transformation</a></td>
<td><a href="02%20Basic%20Array%20Transformations/2761-array-reduce-transformation.js">Code</a></td>
</tr>
</tbody>
</table>

### Function Transformations
### 🧠 Function Transformations
<table>
<thead>
<tr>
<th width="100">LeetCode #</th>
<th width="100">Difficulty</th>
<th>Problem</th>
<th width="100">Solution</th>
<th width="140">Solution</th>
</tr>
</thead>
<tbody>
<tr>
<td>2629</td>
<td>2623</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/function-composition/description/?envType=study-plan-v2&envId=30-days-of-javascript">Function Composition</a></td>
<td><a href="function-transformations/2629.js">Code</a></td>
<td><a href="https://leetcode.com/problems/memoize/">Memoize</a></td>
<td><a href="03%20Function%20Transformations/2731-memoize.js">Code</a></td>
</tr>
<tr>
<td>2703</td>
<td>2629</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/return-length-of-arguments-passed/description/?envType=study-plan-v2&envId=30-days-of-javascript">Return Length of Arguments Passed</a></td>
<td><a href="function-transformations/2703.js">Code</a></td>
<td><a href="https://leetcode.com/problems/function-composition/">Function Composition</a></td>
<td><a href="03%20Function%20Transformations/2741-function-composition.js">Code</a></td>
</tr>
<tr>
<td>2666</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/allow-one-function-call/description/?envType=study-plan-v2&envId=30-days-of-javascript">Allow One Function Call</a></td>
<td><a href="function-transformations/2666.js">Code</a></td>
<td><a href="https://leetcode.com/problems/allow-one-function-call/">Allow One Function Call</a></td>
<td><a href="03%20Function%20Transformations/2796-allow-one-function-call.js">Code</a></td>
</tr>
<tr>
<td>2623</td>
<td>2703</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/return-length-of-arguments-passed/">Return Length of Arguments Passed</a></td>
<td><a href="03%20Function%20Transformations/2820-return-length-of-arguments-passed.js">Code</a></td>
</tr>
<tr>
<td>2632</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/memoize/description/?envType=study-plan-v2&envId=30-days-of-javascript">Memoize</a></td>
<td><a href="function-transformations/2623.js">Code</a></td>
<td><a href="https://leetcode.com/problems/curry/">Curry</a></td>
<td>Null</td>
</tr>
</tbody>
</table>
Expand All @@ -156,57 +162,63 @@ node closures/2667.js
<th width="100">LeetCode #</th>
<th width="100">Difficulty</th>
<th>Problem</th>
<th width="100">Solution</th>
<th width="140">Solution</th>
</tr>
</thead>
<tbody>
<tr>
<td>2723</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/add-two-promises/description/?envType=study-plan-v2&envId=30-days-of-javascript">Add Two Promises</a></td>
<td><a href="promises-and-time/2723.js">Code</a></td>
<td><a href="https://leetcode.com/problems/add-two-promises/">Add Two Promises</a></td>
<td>Null</td>
</tr>
<tr>
<td>2621</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/sleep/description/?envType=study-plan-v2&envId=30-days-of-javascript">Sleep</a></td>
<td><a href="promises-and-time/2621.js">Code</a></td>
<td><a href="https://leetcode.com/problems/sleep/">Sleep</a></td>
<td>Null</td>
</tr>
<tr>
<td>2715</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/timeout-cancellation/description/?envType=study-plan-v2&envId=30-days-of-javascript">Timeout Cancellation</a></td>
<td><a href="promises-and-time/2715.js">Code</a></td>
<td><a href="https://leetcode.com/problems/timeout-cancellation/">Timeout Cancellation</a></td>
<td>Null</td>
</tr>
<tr>
<td>2725</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/interval-cancellation/?envType=study-plan-v2&envId=30-days-of-javascript">Interval Cancellation</a></td>
<td><a href="promises-and-time/2725.js">Code</a></td>
<td><a href="https://leetcode.com/problems/interval-cancellation/">Interval Cancellation</a></td>
<td>Null</td>
</tr>
<tr>
<td>2637</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/promise-time-limit/description/?envType=study-plan-v2&envId=30-days-of-javascript">Promise Time Limit</a></td>
<td><a href="promises-and-time/2637.js">Code</a></td>
<td><a href="https://leetcode.com/problems/promise-time-limit/">Promise Time Limit</a></td>
<td>Null</td>
</tr>
<tr>
<td>2622</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/cache-with-time-limit/description/?envType=study-plan-v2&envId=30-days-of-javascript">Cache With Time Limit</a></td>
<td><a href="promises-and-time/2622.js">Code</a></td>
<td><a href="https://leetcode.com/problems/cache-with-time-limit/">Cache With Time Limit</a></td>
<td>Null</td>
</tr>
<tr>
<td>2627</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/debounce/description/?envType=study-plan-v2&envId=30-days-of-javascript">Debounce</a></td>
<td><a href="promises-and-time/2627.js">Code</a></td>
<td><a href="https://leetcode.com/problems/debounce/">Debounce</a></td>
<td>Null</td>
</tr>
<tr>
<td>2721</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/execute-asynchronous-functions-in-parallel/description/?envType=study-plan-v2&envId=30-days-of-javascript">Execute Asynchronous Functions in Parallel</a></td>
<td><a href="promises-and-time/2721.js">Code</a></td>
<td><a href="https://leetcode.com/problems/execute-asynchronous-functions-in-parallel/">Execute Asynchronous Functions in Parallel</a></td>
<td>Null</td>
</tr>
<tr>
<td>2676</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/throttle/">Throttle</a></td>
<td>Null</td>
</tr>
</tbody>
</table>
Expand All @@ -218,57 +230,69 @@ node closures/2667.js
<th width="100">LeetCode #</th>
<th width="100">Difficulty</th>
<th>Problem</th>
<th width="100">Solution</th>
<th width="140">Solution</th>
</tr>
</thead>
<tbody>
<tr>
<td>2727</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/is-object-empty/description/?envType=study-plan-v2&envId=30-days-of-javascript">Is Object Empty</a></td>
<td><a href="json/2727.js">Code</a></td>
<td><a href="https://leetcode.com/problems/is-object-empty/">Is Object Empty</a></td>
<td>Null</td>
</tr>
<tr>
<td>2677</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/chunk-array/description/?envType=study-plan-v2&envId=30-days-of-javascript">Chunk Array</a></td>
<td><a href="json/2677.js">Code</a></td>
<td><a href="https://leetcode.com/problems/chunk-array/">Chunk Array</a></td>
<td>Null</td>
</tr>
<tr>
<td>2619</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/array-prototype-last/description/?envType=study-plan-v2&envId=30-days-of-javascript">Array Prototype Last</a></td>
<td><a href="json/2619.js">Code</a></td>
<td><a href="https://leetcode.com/problems/array-prototype-last/">Array Prototype Last</a></td>
<td>Null</td>
</tr>
<tr>
<td>2631</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/group-by/description/?envType=study-plan-v2&envId=30-days-of-javascript">Group By</a></td>
<td><a href="json/2631.js">Code</a></td>
<td><a href="https://leetcode.com/problems/group-by/">Group By</a></td>
<td>Null</td>
</tr>
<tr>
<td>2724</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/sort-by/description/?envType=study-plan-v2&envId=30-days-of-javascript">Sort By</a></td>
<td><a href="json/2724.js">Code</a></td>
<td><a href="https://leetcode.com/problems/sort-by/">Sort By</a></td>
<td>Null</td>
</tr>
<tr>
<td>2722</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/join-two-arrays-by-id/description/?envType=study-plan-v2&envId=30-days-of-javascript">Join Two Arrays by ID</a></td>
<td><a href="json/2722.js">Code</a></td>
<td><a href="https://leetcode.com/problems/join-two-arrays-by-id/">Join Two Arrays by ID</a></td>
<td>Null</td>
</tr>
<tr>
<td>2625</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/flatten-deeply-nested-array/description/?envType=study-plan-v2&envId=30-days-of-javascript">Flatten Deeply Nested Array</a></td>
<td><a href="json/2625.js">Code</a></td>
<td><a href="https://leetcode.com/problems/flatten-deeply-nested-array/">Flatten Deeply Nested Array</a></td>
<td>Null</td>
</tr>
<tr>
<td>2705</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/compact-object/description/?envType=study-plan-v2&envId=30-days-of-javascript">Compact Object</a></td>
<td><a href="json/2705.js">Code</a></td>
<td><a href="https://leetcode.com/problems/compact-object/">Compact Object</a></td>
<td>Null</td>
</tr>
<tr>
<td>2628</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/json-deep-equal/">JSON Deep Equal</a></td>
<td>Null</td>
</tr>
<tr>
<td>2675</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/array-of-objects-to-matrix/">Array of Objects to Matrix</a></td>
<td>Null</td>
</tr>
</tbody>
</table>
Expand All @@ -280,27 +304,33 @@ node closures/2667.js
<th width="100">LeetCode #</th>
<th width="100">Difficulty</th>
<th>Problem</th>
<th width="100">Solution</th>
<th width="140">Solution</th>
</tr>
</thead>
<tbody>
<tr>
<td>2694</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/event-emitter/description/?envType=study-plan-v2&envId=30-days-of-javascript">Event Emitter</a></td>
<td><a href="classes/2694.js">Code</a></td>
<td><a href="https://leetcode.com/problems/event-emitter/">Event Emitter</a></td>
<td>Null</td>
</tr>
<tr>
<td>2695</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/array-wrapper/description/?envType=study-plan-v2&envId=30-days-of-javascript">Array Wrapper</a></td>
<td><a href="classes/2695.js">Code</a></td>
<td><a href="https://leetcode.com/problems/array-wrapper/">Array Wrapper</a></td>
<td>Null</td>
</tr>
<tr>
<td>2726</td>
<td><img src="https://img.shields.io/badge/Easy-5CB85C?style=flat-square" alt="Easy"/></td>
<td><a href="https://leetcode.com/problems/calculator-with-method-chaining/description/?envType=study-plan-v2&envId=30-days-of-javascript">Calculator with Method Chaining</a></td>
<td><a href="classes/2726.js">Code</a></td>
<td><a href="https://leetcode.com/problems/calculator-with-method-chaining/">Calculator with Method Chaining</a></td>
<td>Null</td>
</tr>
<tr>
<td>2618</td>
<td><img src="https://img.shields.io/badge/Medium-F0AD4E?style=flat-square" alt="Medium"/></td>
<td><a href="https://leetcode.com/problems/check-if-object-instance-of-class/">Check if Object Instance of Class</a></td>
<td>Null</td>
</tr>
</tbody>
</table>
Expand All @@ -309,11 +339,11 @@ node closures/2667.js

```
Total Problems: 30
├── Easy: 20
├── Medium: 10
├── Easy: 11
├── Medium: 0
└── Hard: 0

Completion: 0% ████████████████████
Completion: 37% ██████████████░░░░░░░
```

## 🤝 Contributing
Expand Down