JSFiddle - React, Tailwind, and code Playground by dmitri_pavlutin January 29, 2023 JavaScript const url = new URL('http://example.com/'); console.log(url.pathname); // => '/'