DEV Community

Discussion on: Daily Challenge #89 - Extract domain name from URL

Collapse
 
midasxiv profile image
Midas/XIV

That's called destructuring assignment. "a" probably is an object which has the hostname property so that assignment extracts hostname.
I'm just writin about this 😅. Hopefully that'll help you.