Hello everyone, welcome to my blog again. 🤓 Today, we will be learning how HTTP protocol works and how browsers send and receives data from server to client.

So, before moving to HTTP protocol, let's see what is a protocol in computer networks???

A network protocol is an established set of rules that determine how data is transmitted between different devices in the same network. Essentially, it allows connected devices to communicate with each other, regardless of any differences in their internal processes, structure or design.

Now, let’s see what HTTP is -

HTTP stands for HyperText Transfer Protocol. HTTP is the TCS/IP based application-layer communication protocol…

When we declare a variable using the var keyword, the declaration of that variable is put into the memory component of the browser during compile time. That variable is hoisted in the memory. So, if we try to access that variable before its declaration, we won’t get an error.

var num = 123;
//op - 123

This is pretty straightforward that the above code will give 123 as output.

var num = 1234;
// op - undefined

Things get interesting when we run the above code, it will not throw an error unlike other programming languages and will…

Hello everyone 👋, welcome to my blog. Today we are going to learn about a very famous and very widely used(because of its efficiency) competitive programming algorithm i.e. Sieve of Eratosthenes. It is used to find all the prime numbers within a given range of numbers say 1 to n.

So, the first thing is-

What is the need of finding prime numbers?

How is it used in real-world applications?

So, finding prime numbers is of critical importance for practical applications such as cryptography. Many public-key methods are only safe because it’s generally inefficient and slow to compute the prime…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store