javascript-questions icon indicating copy to clipboard operation
javascript-questions copied to clipboard

The topic 144 answer is wrong

Open FIGHTING-TOP opened this issue 4 years ago • 1 comments

const person = {
  name: "Lydia Hallie",
  age: 21
}

[...person] // ["Lydia Hallie", 21]

answer is B

*[Symbol.iterator]() { for (let x in this) yield* this[x] }

FIGHTING-TOP avatar Feb 11 '21 09:02 FIGHTING-TOP

@FIGHTING-TOP the answer is correct.

B would have been a correct answer if we it was yield instead of yield*

efleurine avatar Dec 31 '21 07:12 efleurine