Welcome to the Treehouse Community
Looking to learn something new?
Would it not be better to use promise object instead of try...catch?
i would think https.get() is asynchronous, so would promise object not be more suited?
Promises should be used for asynchronous functions only, so you are correct that a promise would be more suited with the https.get().
However, as Andrew mentioned at 3 minute 49 seconds, if a URL is not a browser-compatible URL, it will throw an error straight away, without any asynchronous execution. This is what Andrew's try, catch is demonstrating.