The url.hash is an inbuilt application programming interface of class URL with in url module which is used to get and set the fragment portion of the URL.
Return value: It gets and sets the fragment portion of the URL.
Below programs illustrate the use of url.hash Method:
Before Change https://example.org/foo#ram After Change https://example.org/foo#rahim
NOTE: The above program could be run by using the node myapp.js command .