Just a bit of code logging an error. Why is error a string for the first argument?
request.on(‘error’, error=> console.log(error.code))
Always sort of confusing when reserved words are strings.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Just a bit of code logging an error. Why is error a string for the first argument?
request.on(‘error’, error=> console.log(error.code))
Always sort of confusing when reserved words are strings.