javascript-questions
javascript-questions copied to clipboard
The topic 144 answer is wrong
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 the answer is correct.
B would have been a correct answer if we it was yield
instead of yield*