#Javascript

Author avatar
Prashant BasnetJun 8, 2025
Pub/Sub: The Invisible Glue That Makes Modern Apps Work

Publish-Subscribe is a messaging pattern where:Publishers send messages without knowing who receives them.Subscribers listen without kn

4 min read·General
Article cover
Author avatar
Prashant BasnetMay 29, 2025
Understanding Debounce vs Throttle

If you’ve ever built a search bar or input form that sends API calls, you’ve probably heard of debounce. Or maybe you’ve created a backend API then you've proba

3 min read·General
Article cover
Author avatar
Brain DumpMay 29, 2025
🔗 LeetCode JavaScript Questions (with links)

List of question to upgrade your javascript skill.3373. Maximize the Number of Target Nodes After Connecting Trees II2618. Check if Object Instance of Class2619

2 min read·General
Author avatar
Brain DumpJan 16, 2025
Encode and Decode Strings | String Manipulation

decode(str) { const result = [] let i = 0 while (i < str.length) { const delimeter = str.indexOf('#', i) const length = str.substring(i, delimeter) const

1 min read·General
Author avatar
Prashant BasnetJan 15, 2025
For vs While loop | When to use what?

Whenever we are updating the iteration by only 1 count regardless we use for.If we want to update out iteration based certain count depending on the condition.

2 min read·General
Article cover