Important Points and Node js role in web development

What is Server-Side and Client-Side Scripting?

Server — where our code runs (backend)

Client — the part which the user accesses (frontend)


Server-side scripting language

The languages that execute on the server.

Examples: PHP, Java


Client-side scripting language

The languages that execute on the client (browser).

Example: JavaScript


How Does Node.js Use JavaScript?

Normally JavaScript works on the client side (browser).

Node.js allows us to run JavaScript on the server side also.


What Do We Exactly Do with Node.js?

Node js is mostly used for API development

API send send and receive data between any two language

After make API in node js , API can use in front technologies , Mobile technologies and any other platform


Why Do We Need APIs?

APIs allow different applications to communicate with each other.

Example:

Frontend app sends a request → API processes it on the server → API sends back the response (data) to frontend or mobile app.

That’s why we build APIs — so that our backend and frontend (or mobile app) can work together.