JavaScript: How to remember the difference between "for...in" and "for...of"
There was a young programmer in BerlinWho constructed a for loop with inShe found the effect isA series of indexesAnd swore ne'er to use it again.
Don't use for...in
Here's what happened to our programmer in Berlin:
const cities = ["Berlin", "Prague...
spaceaardvark.hashnode.dev2 min read
Samuel Kubiti
Learner
Useful content, I always had to look up the differences when I wanted to use one.