Web APIs & Utilities

Stringify Object to Query String

easyJS SpecificJS / TS3 tests

Problem Statement

Implement `stringifyQueryString(params)` that serializes an object into a URI-encoded URL query string. Ignores `null` and `undefined` properties, and serializes array values with repeated keys.

Examples

Example 1:
stringifyQueryString({ name: 'Alice Smith', active: true, tag: ['js', 'ts'] });
// 'name=Alice%20Smith&active=true&tag=js&tag=ts'
JavaScript & TypeScript starter code included
Run this as a live interview

Practice solo

3 test cases. No second person needed.

Get new interview exercises

Practice problems and review drills, sent when we publish new ones. No spam.

Unsubscribe anytime. We never share your address.