---
title: "Bobby Sadhwani (@bobby-sadhwani) | Hashnode"
description: "Frontend Engineer. Read the latest articles by Bobby Sadhwani on Hashnode."
url: "https://hashnode.com/@bobby-sadhwani"
---

@bobby-sadhwani

# Bobby Sadhwani

@bobby-sadhwani · Bhopal, India · Joined July 2022

Frontend Engineer

[Website](https://bobby-sadhwani.netlify.app/)

### [Publisher–Subscriber Pattern in JavaScript (Simple Implementation)](https://bobby-sadhwani.hashnode.dev/publishersubscriber-pattern-in-javascript-simple-implementation?utm_source=hashnode&utm_medium=feed)

Learn to implement the Publisher-Subscriber pattern in JavaScript with a minimal, clean approach using classes

2 min read · [bobby-sadhwani.hashnode.dev](https://bobby-sadhwani.hashnode.dev/publishersubscriber-pattern-in-javascript-simple-implementation?utm_source=hashnode&utm_medium=feed)

[Dec 25, 2025](https://hashnode.com/posts/publishersubscriber-pattern-in-javascript-simple-implementation/694ce808fea3dbe139f55d98)

### [Stack in Javascript](https://bobby-sadhwani.hashnode.dev/stack-in-javascript?utm_source=hashnode&utm_medium=feed)

What is Stack? A stack is an ordered collection of items that follow the (LIFO) Last In First Out principle. The addition and removal of items take place at the same end i.e. at the top. The newest elements are at the top and the oldest elements are ...

3 min read · [bobby-sadhwani.hashnode.dev](https://bobby-sadhwani.hashnode.dev/stack-in-javascript?utm_source=hashnode&utm_medium=feed)

[Aug 29, 2023](https://hashnode.com/posts/stack-in-javascript/64ee4d591585f7821d819a95)

### [Arrow functions in JavaScript](https://bobby-sadhwani.hashnode.dev/arrow-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

Arrow functions were introduced in ES6. It behaves differently from the traditional functions of Javascript. Syntax const functionName = (parameters) => { //function body } const getName = (age) => { let name = 'Bobby'; return \`${name} is...

4 min read · [bobby-sadhwani.hashnode.dev](https://bobby-sadhwani.hashnode.dev/arrow-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

[Aug 29, 2023](https://hashnode.com/posts/arrow-functions-in-javascript/64eddea7e50670c040d93b32)

### [Functions in JavaScript](https://bobby-sadhwani.hashnode.dev/functions-in-javascript?utm_source=hashnode&utm_medium=feed)

What is a function? A function is a reusable piece of code that takes some input, performs some task and returns a value. A function stores a piece of code that we want to use repeatedly. To use a function, we call that function by its name. // Defin...

4 min read · [bobby-sadhwani.hashnode.dev](https://bobby-sadhwani.hashnode.dev/functions-in-javascript?utm_source=hashnode&utm_medium=feed)

[Feb 25, 2023](https://hashnode.com/posts/functions-in-javascript/63fa42e01ad4558e62eb368e)

### [Event Loop in JavaScript](https://bobby-sadhwani.hashnode.dev/event-loop-in-javascript?utm_source=hashnode&utm_medium=feed)

Javascript is a synchronous single-threaded language. JS executes all operations on a single thread. It executes one thing at a time. The Event loop gives us the illusion of asynchronous programming in JavaScript. Before understanding the event loop,...

4 min read · [bobby-sadhwani.hashnode.dev](https://bobby-sadhwani.hashnode.dev/event-loop-in-javascript?utm_source=hashnode&utm_medium=feed)

[Jan 21, 2023](https://hashnode.com/posts/event-loop-in-javascript/63cbe75ee9419118d4ba4b92)
