Extract Hostname from URL String
Extract Hostname from URL String: a task in Terminal-Lego-15k (Harbor dataset). Create a JavaScript solution that extracts the hostname (domain) from URL strings. The solution should be able to parse various URL formats and return just the root domain portion.
Part of PrimeIntellect/Terminal-Lego-15k.