It updates the location.hash with the given query params, it uses location.hash if a second argument hash is not provded
location.hash
hash
It updates the
location.hashwith the given query params, it useslocation.hashif a second argumenthashis not provded