Dev HelpersOpen library
← Back

Use form data

Use form data. A self-contained example using the JavaScript runtime.

Open this example in the interactive library

Source code

const form = new FormData();
form.set("name", "Ada");
form.append("tag", "js");
console.log([...form.entries()]);

Sample output

[ [ 'name', 'Ada' ], [ 'tag', 'js' ] ]