How to Modify URL Query Parameters in Node.js

Posted on Leave a commentPosted in Programming

In my previous post, I suggested that string concatenation is an unreliable way to modify URL queries. Let’s explore this idea a little further (or, just skip to the tl;dr if you just want the solution). First, let’s write a function that appends a URL query parameter via string concatenation:

Now, let’s throw some […]