Ah, syntax. Your logic might be sound but miss those commas, brackets, or a typo turns
> into '<', and bam! broken code. But, hopefully, your JSlinter catches and corrects those some of those errors.
While your linter will catch incorrect use of for...in, how does one remember the use case for
for...in? Which is for iterating over
objects or through
If you get shot and the bullet stays in your body, the doctor looks for the
for...inobject. The pun/trick is pronouncing
Do brush up on
for..in usage as it doesn’t loop in an ordered fashion. This Bits of Code article explains well when to use
What tricks or methods do you use to remember syntax or bits of code?