How to fix FormData entries not showing in console with JavaScript?

Spread the love

Sometimes, we want to fix FormData entries not showing in console with JavaScript.

In this article, we’ll look at how to fix FormData entries not showing in console with JavaScript.

How to fix FormData entries not showing in console with JavaScript?

To fix FormData entries not showing in console with JavaScript, we use a for-of loop.

For instance, we write

for (const data of formData) {
  console.log(data);
}

to loop through each formData key-value pair entry with the for-of loop.

And we log the value of each with console.log.

Conclusion

To fix FormData entries not showing in console with JavaScript, we use a for-of loop.

Leave a Reply

Your email address will not be published. Required fields are marked *