skip to Main Content

How to get data from response? Express js – Javascript

I am very new to node js. I am just testing some stuff about client-server communication. I have these codes: server: app.post('/zsa', (req, res) => { res.send("zsamo"); }); client: fetch("http://localhost:3000/zsa", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify(data),…

VIEW QUESTION
Back To Top
Search