FormData Playground

A real shipping form at the counter: new FormData(form), get vs getAll, then fetch to the gudang as multipart or urlencoded. An interactive FormData…

Why it matters

Every form sent to a server goes this way. Collecting values with querySelector one by one misses things; FormData reads them all, checkbox groups and files included, and fetch writes the right Content-Type itself.

The key idea

FormData reads the form as it is, repeated names included

Common mistakes

Try it in this playground