We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 882a348 commit 2b4209cCopy full SHA for 2b4209c
1 file changed
general-patterns/for-in-loops.html
@@ -28,7 +28,7 @@
28
// antipattern
29
// for-in loop without checking hasOwnProperty()
30
for (var i in man) {
31
- console.log(1, ":", man[i]);
+ console.log(i, ":", man[i]);
32
}
33
/*
34
* result in the console
@@ -78,4 +78,4 @@
78
// http://net.tutsplus.com/tutorials/javascript-ajax/the-essentials-of-writing-high-quality-javascript/
79
</script>
80
</body>
81
-</html>
+</html>
0 commit comments