'FormData append - not working

Why my code not working ?

var myFormData = new FormData();
myFormData.append('xxx',1233);
console.log(myFormData);

Why myFormData is empty?

https://repl.it/B8K4



Solution 1:[1]

You cant log it or get data from it in a simple way.

Already explained here: How to inspect FormData?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Community