What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-29 00:51:16
http request without a library in javascript
const http = require('http'); const url = 'http://api.weatherstack.com/current?access_key=29f9cf0e577a785e1dfb23a049e2336c&query=40,-75'; const request = http.request(url, (response) => { let data = '' response.on('data', (chunk)=> { //... Add solution -
Javascript 2021-10-05 20:34:05
how to DELETE "/api/notes" with an id
app.delete("/api/notes/:id", (req, res) => { let chosenNoteToDelete = req.params.id; fs.readFile(__dirname + "/db/db.json", (err, data) => { if (err) { console.log(err); res.sendStatus(500)... Add solution
Best helpers
NeuronQ
+5
JoshuaFicy
+5
Peacetype
+5
Majte
+5
Darman
+5
Entrepreneur
+5
Meital Regev
+5
Shenkwen
+5
Digcoal
+5
Arad
+5
A G Davey
+5
Dustin G
+5
Spork
+5
Hell.Bent
+5
Emmet
+5
KJ11
+5
Muazam
+5
Zijoud
+5
Vigrond
+5
Scoiattolo
+5
Erica Price
+5