formData.append("key1", "value1");
formData.append("key2", "value2");
// Display the key/value pairs
for (const pair of formData.entries()) {
console.log(pair[0], pair[1]);
}FormData: entries() method / notebook
FormData: entries() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.