Question: Question 1 (1 point) Consider the following code intended to be executed by Node.js: const http const options require('http') (hostname: 'localhost', port: '3000', path:

Question 1 (1 point) Consider the following code intended to be executed by Node.js: const http const options require('http') (hostname: 'localhost', port: '3000', path: '/', method: 'POST'} function readJSONResponse (response) { let responseData = " response.on('data', function (chunk) (response Data += chunk}). response.on('end', function () { var dataObj = JSON.parse (responseData) }) console.log('Message: console.log('Question: + dataObj.message) +dataObj.question) let req http.request (options, readJSONResponse) req.write('("name": "Bilbo", "occupation": "Burgler")) req.end() Which ONE of the following best describes what this code is likely trying to implement?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
