1. HLD Network Protocols

OSI Model 7 Layer: Application Layerpresentation LayerSession Layertransport layerData Link LayerPhysical Layer Application Layer1. client-server protocol a) HTTP (one-way communication request from client and response from server) 1 connection create hota hai b) FTP ( 2 connection maintain hote hai, 1 control connection ( hamesha bana rahta hai, 1 data connection ( data connection can … Read more

Object Oriented Programming in Javascript

You need to declare the class before use. no need to use var, let or const for properties and no need to use function keyword for method you can use #properties/method to make properties/method private i.e encapsulation child classs mai private class ki properties access nhi kar sakte … static method/properties to instance(object) kai uper … Read more

Factory Design Pattern

What is the Factory Design Pattern? The Factory Design Pattern is a creational design pattern that provides an interface for creating objects in a super class, but allows subclasses to alter the type of objects that will be created. In simpler terms, it defines an interface for creating an object but leaves the choice of … Read more

Min Heap and Max Heap in JavaScript

Introduction In the world of algorithms and data structures, heaps play a crucial role. Two common types of heaps are Min Heap and Max Heap, each with its unique characteristics and use cases. In this blog post, we’ll delve into the concepts of Min Heap and Max Heap, exploring their structures, applications, and implementation in … Read more