What is a URL pathname?
The pathname of the URL is the part of the URL that indicates the location of the file.
For example, if you have the URL "https://abc.com/aaa/bbb/ccc.html", the pathname will be "/aaa/bbb/ccc.html".
What is the location.pathname property?
The location.pathname property allows you to see the pathname of the current page.