In Express, which middleware is used to parse JSON request bodies?
Anonymous Poll
15%
app.urlencoded()
58%
express.json()
31%
app.json()
8%
express.urlencoded()
ā¤2š1
What HTTP status code do we usually return when a new resource is created successfully?
Anonymous Poll
35%
404
15%
500
40%
200
21%
201
ā¤3
If you want to send data from frontend (React) to backend (Express), where will that data be available in Express?
Anonymous Poll
30%
req.query
34%
req.body
14%
req.params
36%
res.json
ā¤4
*Here are the correct answers for the above questions:* ā
1. What does REST stand for?
ā b) Representational State Transfer
š REST is an architectural style that defines rules for creating scalable web services.
2. Which HTTP method is used to create new data in a REST API?
ā b) POST
š POST is used to create a new resource. GET retrieves, PUT updates, DELETE removes.
3. In Express, which middleware is used to parse JSON request bodies?
ā c) express.json()
š You must use app.use(express.json()) so Express can handle JSON input from clients.
4. What HTTP status code do we usually return when a new resource is created successfully?
ā b) 201
š 201 Created means the resource was successfully created.
5. If you want to send data from frontend (React) to backend (Express), where will that data be available in Express?
ā c) req.body
š When you POST data, it is parsed into req.body (if you use express.json()).
1. What does REST stand for?
ā b) Representational State Transfer
š REST is an architectural style that defines rules for creating scalable web services.
2. Which HTTP method is used to create new data in a REST API?
ā b) POST
š POST is used to create a new resource. GET retrieves, PUT updates, DELETE removes.
3. In Express, which middleware is used to parse JSON request bodies?
ā c) express.json()
š You must use app.use(express.json()) so Express can handle JSON input from clients.
4. What HTTP status code do we usually return when a new resource is created successfully?
ā b) 201
š 201 Created means the resource was successfully created.
5. If you want to send data from frontend (React) to backend (Express), where will that data be available in Express?
ā c) req.body
š When you POST data, it is parsed into req.body (if you use express.json()).
ā¤5
š» Aapko kis type ka coding project pasand aayega / seekhna chahoge?
š Vote karke batayein aur apna reason niche comments me likhna na bhulein!
š Vote karke batayein aur apna reason niche comments me likhna na bhulein!
Anonymous Poll
23%
Java Projects (Console/Terminal based)
20%
Python Projects (Django Web Apps)
43%
MERN Stack Projects (React + Node + MongoDB, Full-Stack)
46%
Web Dev Basics (HTML, CSS, JS projects)
š„7ā¤3ā1
š» Hacker Login Form Using HTML & CSS | Dark UI Animation š„ | Code With Me š
.
https://youtu.be/q8B9WPLJfqc
.
Preview :-
https://www.instagram.com/reel/DPg5WkOiGk2/?igsh=MTZ3MmlnemxxeWQzZw==
.
https://youtu.be/q8B9WPLJfqc
.
Preview :-
https://www.instagram.com/reel/DPg5WkOiGk2/?igsh=MTZ3MmlnemxxeWQzZw==
ā¤4š1
2_hacker_login_form_CWM.zip
2.1 KB
Password :-
Only 2 Min Full Watch Video ā Don't Skip š
Only 2 Min Full Watch Video ā Don't Skip š
ā¤4š¤£3š„1
š¬ Netflix Button Animation Using HTML & CSS š„ | Glowing Hover Effect Tutorial š»
.
https://youtu.be/ErsCJGyrJLA
.
Preview :-
https://www.instagram.com/reel/DPlsccYj1LT/?igsh=Mnkxc2h2d2wzYnJn
.
https://youtu.be/ErsCJGyrJLA
.
Preview :-
https://www.instagram.com/reel/DPlsccYj1LT/?igsh=Mnkxc2h2d2wzYnJn
ā¤4š1
3_netflix_button_animation_CWM.zip
1.9 KB
Password :-
Only 2 Min Full Watch Video ā Don't Skip š
Only 2 Min Full Watch Video ā Don't Skip š
š„1
Funny Egg Toggle Animation using HTML & CSS š³ | Creative Switch Button š
.
.
.
https://youtube.com/shorts/s_x117Vk0KA
.
.
.
https://youtube.com/shorts/s_x117Vk0KA
Animated Blossoming Flowers using HTML & CSS šø | Beautiful UI Animation āØ
.
.
.
https://youtube.com/shorts/KVdHpME9dMs
.
.
.
https://youtube.com/shorts/KVdHpME9dMs
ā¤2š„°1
Magic Animated Motion Button using HTML & CSS ⨠| Smooth UI Animation š»
.
.
.https://youtube.com/shorts/P5dNM0ApuVA
.
.
.https://youtube.com/shorts/P5dNM0ApuVA
YouTube
Magic Animated Motion Button using HTML & CSS ⨠| Smooth UI Animation š»
Magic Animated Motion Button using HTML & CSS āØIn this short, learn how to create a smooth, modern motion button that comes alive with 3D-like animation ā al...