Using the location Object, try the following:
-
Create a URL with the following schema:
scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]
-
In a gist, identify all parts of a URL schema (With your own words)
-
Create a class with methods that extract and Identify all parts of the specified url Schema. For example, if
https://www.example.com?foo=bar
is provided, display the following on the page or console. -
scheme: http
-
etc
-
etc