DEV Community

Discussion on: Handy JavaScript Tricks Object and Array Tricks to Save You Time

Collapse
 
playwright2poli profile image
playwrightpo

It seems we are talking about different sections)). I meant the section describing this code snippet:

const url = new URL('http://example.com/#hash');
console.log(url.host);
url.host = 'newExample.com';
console.log(url.toString());

And the description below this snippet has typos mentioned in my previous comment.

Thread Thread
 
aumayeung profile image
John Au-Yeung

Sorry. I missed that. I corrected it now.