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' ] ]

Open this example in the interactive library
const form = new FormData();
form.set("name", "Ada");
form.append("tag", "js");
console.log([...form.entries()]);
[ [ 'name', 'Ada' ], [ 'tag', 'js' ] ]