DEV Community

Discussion on: ⭐️ Interactive JavaScript Quiz #2

Collapse
 
karataev profile image
Eugene Karataev

2/3

  1. This was a warm up question πŸ™‚
  2. I thought that I'll fail with this one, because I have almost zero experience with generators/iterators, but somehow figured the right answer.
  3. My belief that typeof operator is always safe even with undeclared variables was wrong πŸ˜”. Watch out for TDZ!
Collapse
 
lydiahallie profile image
Lydia Hallie

That’s great!!

Yeah there are some pitfalls when using the uninitialized variables haha, it’s not always very clear what you can and cannot do, I agree