Web globals
new FormData()
Builds multipart form fields. Repeated names are allowed; use getAll when multiple values are expected. This fixture does not transmit a request. Tested on Node.js 22.16.0. Example output (one line per entry): ["node,backend"].
Formal Syntax & Structure
nodejs syntaxnodejs
new FormData()Return Value
FormData
Form field collection.
Working Example
Example Snippetnodejs
const f = new FormData();f.append('tag', 'node');f.append('tag', 'backend');console.log(f.getAll('tag').join(','));