Category: Javascript

What is destructuring 0

What is destructuring

Destructuring allows you to easily extract values from Objects or Arrays and assign to new values or even assign default values to undefined properties Imagine this code : user = { name: ‘dave’, gender:...

Remove URL parameters without refreshing page 0

Remove URL parameters without refreshing page

I recently had a requirement where I wanted to remove the unwanted query strings from the URL address bar without refreshing, redirecting or reloading the page. The URL was like this: http://createurapp.com/apps/popularpics?access_token=some_random_value I wanted...