http.createServer((req,res)=>{
res.write('hello world');
console.log(typeof res);// obj
res.end();
});
How to check the specific object types of req and res, so that you can go to the document to see the specific details. api.typeof prints out object, and I hope that what prints out is http.ServerResponse
How to do it
Print the class information of the function: