Query Parameters in JavaScript (3+1 Ways)

Опубликовано: 06 Август 2026
на канале: DevTips
19,981
401

Sponsored by: Coursera.org, thanks! Get the world's best online education experience on subjects such as Data Science, Business, Blockchain, you name it at Coursera! http://go.thoughtleaders.io/721320181123

Query parameters are a bit tricky (pain) to deal with. Especially if you want to modify just one, say remove one parameter but not the others. David goes through how to do that using the Hacky Way™️, Regex, or plain JavaScript + 1 extra tool-based way depending on the circumstance.

🗿 MILESTONES
⏯ 01:06 What are query parameters⁉️
⏯ 03:34 Hacky strategy
⏯ 05:35 Using Regex
⏯ 11:03 Using JavaScript "Perfect Way"

Code from the video
📝 https://gist.github.com/chhib/4ba7238...

The VS Code plugin used to to preview values is Quokka.js
🔌 http://quokka.devtipsshow.com

The editor is called Visual Studio Code and is free. Look for the Live Share extension to share your environment with friends.
💻 https://code.visualstudio.com/

DevTips is a weekly show for YOU who want to be inspired 👍 and learn 🖖 about programming. Hosted by David and MPJ - two notorious bug generators 💖 and teachers 🤗. Exploring code together and learning programming along the way - yay!

DevTips has a sister channel called Fun Fun Function, check it out!
❤️    / funfunfunction  

#javascript #queryparameters #regex