logo

Crowdly

U kojoj liniji koda je greška zbog koje se u odgovor ne upisuju podaci pročitani...

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

U kojoj liniji koda je greška zbog koje se u odgovor ne upisuju podaci pročitani iz datoteke?

1

2

3

4

5

6

7

8

9

10

11

12

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;

res.write(podaci);

});

res.end();

}).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!