const u = new URL('https://example.com')
u instanceof URL // β trueURL instances can be checked with instanceof.
Passing an invalid URL string to new URL() throws a TypeError.
Challenge: Verify that new URL('not-a-url') throws a TypeError.