Well done!

You have completed Node.js Basics Review!

Quiz Question 1 of 7

Given the following code...

 const https = require('https'); 
try { 
  const request = https.get('myawesomeapi.com/comments.json', (response) => { }); 
  request.on(error => console.error('Asynchronous error') ); 
} catch(error) { 
  console.error('URL parse error'); 
} 
Which error will be triggered?

Choose the correct answer below:

Skip Quiz Review Video