0 votes
114 views
in MEAN by (0 points)
closed by
Shilpa wants to improve efficiency of the application she is working on, by modifying the below blocking code into non blocking code. Which of the following code would you recommend her to use?

ar contents=fs readFileSync(^ prime / etc / h * ost * s' ) console.log(contents). console.log('Doing something else');
closed

1 Answer

0 votes
by (0 points)
 
Best answer
fs.readFile(/etc/hosts, function(er, contents)[

console.log(contents)

console log("Doing something else");

Related questions

2.8k questions

2.8k answers

0 comments

76 users

Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...