logo

Crowdly

Ispod koje linije koda treba dodati res.end(podaci); kako bi se u odgovor upisal...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Ispod koje linije koda treba dodati res.end(podaci); kako bi se u odgovor upisali pročitani redovi iz datoteke?

1

2

3

4

5

6

7

8

9

10

const http = require('http');

const fs = require('fs');

const url = require('url');

http.createServer(function(req,res){

let podaci;

fs.readFile('imenik.txt',function(err,data){

if(err) throw err;

podaci=data;

});

}).listen(8080);

More questions like this

Want instant access to all verified answers on c2.etf.unsa.ba?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!