We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97dde7a commit f54ac1cCopy full SHA for f54ac1c
page/javascript-101/loops.md
@@ -48,14 +48,14 @@ for (var i = 0, limit = 100; i < limit; i++) {
48
49
## The `for...in` loop
50
51
-+A `for...in` loop iterates over the properties of an object. For each property, statements can be executed.
52
-+
53
-+```
54
-+for ( prop in obj ) {
+A `for...in` loop iterates over the properties of an object. For each property, statements can be executed.
+
+```
+for ( prop in obj ) {
55
// statements here will be executed for every key in the object
56
console.log( prop + ': ' + obj[ prop ] );
57
}
58
-``
59
60
61
## The `while` loop
0 commit comments