lydiahallie / javascript-questions

A long list of (advanced) JavaScript questions, and their explanations :sparkles:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question 76

gabilita opened this issue · comments

Congrats on the questions, but I think you made an error on question 76.
Probably because you were in an iframe or something and had the window.name property.
The correct answer is D since it's returning a ReferenceError.
Maybe you could change the property to something different.

const { myName: otherName } = { myName: 'Lydia' };

console.log(myName); // Uncaught ReferenceError: myName is not defined

Hi. There's another issue about this here: #622

There are also several open PRs for this:
#698
#686
#670
#628

I am not involved with this project, so can't tell you any more than the above.

Thanks, then I'll be closing this.