Question: uncaught typeerror object is not iterable?
Answer: In JavaScript, Object s are not iterable unless they implement the iterable protocol. Therefore, you cannot use for…of to iterate over the properties of an object. var obj = { 'France': 'Paris', 'England': 'London' }; for (let p of obj) { // TypeError: obj is not iterable // … } Instead you have to use Object.