Change URL query parameters using JavaScript

1 · Amit Merchant · June 23, 2020, 5:42 p.m.
While working on Your First Commit Ever, there arised a requirement in which I had to update/change the URL’s query paramter based on the user input. To give a primer, this app contains an only input where a user can enter their GitHub username and once hit Enter, the app would fetch the very first commit of that particular user using GitHub Developer API like so. Now, I wanted change the URL’s query parameter based on the entered input. So, for example if user enter amitmerchant1990, the app s...