Skip to content

Commit 2b4209c

Browse files
committed
typo fixed
1 parent 882a348 commit 2b4209c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎general-patterns/for-in-loops.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
// antipattern
2929
// for-in loop without checking hasOwnProperty()
3030
for(variinman){
31-
console.log(1,":",man[i]);
31+
console.log(i,":",man[i]);
3232
}
3333
/*
3434
* result in the console
@@ -78,4 +78,4 @@
7878
// http://net.tutsplus.com/tutorials/javascript-ajax/the-essentials-of-writing-high-quality-javascript/
7979
</script>
8080
</body>
81-
</html>
81+
</html>

0 commit comments

Comments
(0)