Extract the domain name from a URL - JavaScript Codewars Challenge

Published --