Quantcast
Channel: Dev Blog
Viewing all articles
Browse latest Browse all 10

Tips.js - Lesson 1: For-in Caveats

$
0
0
JS has several different looping statements, many of which we know and love: for, while, and do-while. JS has a sort of for-each statement, which we like to call the for-in statement, but the caveat with for-in statements is that they do not discriminate between properties of the object and properties of the object's prototype chain.

Viewing all articles
Browse latest Browse all 10

Trending Articles