
Sometimes you may need to split URL into hostname and pathname in JavaScript. Here is how to parse URL into hostname & pathname in JS.
Sometimes you may need to split URL into hostname and pathname in JavaScript. Here is how to parse URL into hostname & pathname in JS.