// Create a test FormData object
var formData = new FormData();
formData.append('key1', 'value1');
formData.append('key2', 'value2');
// Display the key/value pairs
var entries = formData.entries();
for(var pair of entries) { // line 1222
console.log(pair[0]+ ', '+ pair[1]); // line 1223
} // line 1224
[ERROR] in script.js
1222:16:missing ; after for-loop initializer
[ERROR] in script.js
1223:10:syntax error
[ERROR] in script.js
1224:1:syntax error
If I change "for..of" to "for...in" works, but I need to be "for...of".
If I change "for..of" to "for...in" works, but I need to be "for...of".