Skip to content

Commit 5c045e3

Browse files
authored
Update JavaScript for...in syntax block (#5079)
Add missing angled brackets (`{ }`) missing from `for...in` syntax example. Adjust HTML formatting in line with `for...of` syntax. https://github.com/mdn/content/blob/f9d710480812705f184665a3bd42de55e9ab098f/files/en-us/web/javascript/reference/statements/for...of/index.html#L27-L30
1 parent 1c8fe99 commit 5c045e3

File tree

1 file changed

+4
-2
lines changed
  • files/en-us/web/javascript/reference/statements/for...in

1 file changed

+4
-2
lines changed

files/en-us/web/javascript/reference/statements/for...in/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919

2020
<h2 id="Syntax">Syntax</h2>
2121

22-
<pre class="brush: js">for (<var>variable</var> in <var>object</var>)
23-
statement</pre>
22+
<pre class="brush: js">for (<var>variable</var> in <var>object</var>) {
23+
<var>statement</var>
24+
}
25+
</pre>
2426

2527
<dl>
2628
<dt><code><var>variable</var></code></dt>

0 commit comments

Comments
 (0)