getting form object in console.log code example
Example 1: how to console.log formData
// Display the values
for (var value of formData.values()) {
console.log(value);
}
Example 2: console log formdata
// Display the key/value pairs
for (var pair of formData.entries()) {
console.log(pair[0]+ ', ' + pair[1]);
}