Find the URL Mistake
Find the Mistake Easy
Question
This fetch URL has a mistake. Find and fix it.
Code
fetch("https://api.example.com/users?id=42&sort=name&")
Hint
Check the end of the query string for a trailing character.
Explanation
The URL has a trailing '&' at the end of the query string, which is invalid. The correct URL should be 'https://api.example.com/users?id=42&sort=name' without the trailing '&'. Some servers may tolerate it, but it is technically malformed.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.