POST vs PUT Quiz
Multiple Choice Medium
Question
What is the key difference between POST and PUT?
Hint
Think about idempotency and whether the client knows the final URL.
Explanation
POST is used to create a new resource where the server assigns the URL (e.g., POST /users creates a new user and the server returns its URL). PUT replaces the resource at a client-specified URL (e.g., PUT /users/42 updates user 42). PUT is idempotent — calling it multiple times has the same effect as calling it once.
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.