DEV Community

Ishaq Nasir
Ishaq Nasir

Posted on • Updated on

Client-Side and Server-side

Introduction

when getting deep into JavaScript, the use of frameworks such as React. we'd always see them implementing words like client-side and server-side in their documentation which sometimes makes people new to such words lost.
Two types of code are implemented when creating web applications: client-side and server-side.
A basic understanding of the differences between these two types of code is essential for building high-performance and efficient web applications. In this article, we'll discuss what server-side and client-side development is, and how they differ.

Image description

What is client-side

In web development, client-side refers to the interface that is displayed on the web Application. client-side is almost always written in Javascript, HTML, and CSS. Client-side code handles tasks such as user interface components like buttons and forms, as well as logic that handles user interactions and input.

Client-side allows for a faster and more responsive user experience. By performing tasks on the client side, developers can reduce the amount of time for pages to load and respond to user input.

What is server-side

Much like the client side, the server side refers to a piece of code task running on the server. In the past, virtually almost all web Application logic ran on the server side, and this included rendering dynamic web pages, interacting with databases, identity authentication, and push notifications.

server-side allows developers to perform tasks that would be difficult to do on the client side. e.g, server-side code can be used to interact with databases, perform data analysis, or integrate with other systems such as APIs.

Difference between server-side and client-side

  • Server-side code runs on the server while client-side code runs on the user device, such as mobile phones and computers.

  • Server-side code can be used to perform complex calculations, interact with databases, and integrate them with other systems while Client-side code, on the other hand, is typically used to handle user interactions and input, as well as to create visual effects and other interactive elements.

Top comments (0)