Problem Statement
What are the different types of HTTP requests supported in Node.js?
Explanation
Node.js supports all standard HTTP request methods such as GET (fetch data), POST (create data), PUT (update data), DELETE (remove data), PATCH (partial update), and HEAD (metadata only). These can be implemented using the `http` or `express` modules.
Code Solution
SolutionRead Only
app.get('/users',(req,res)=>res.send('List'));
app.post('/users',(req,res)=>res.send('Created'));