Text only
JavaScript Foreach
/raw/39a60d2021270ce207df97bf0a5cd4f5/
39a60d2021270ce207df97bf0a5cd4f5
text
Text only
4
2025-04-04T11:37:59
True
False
False
/api/public/snipt/147285/
javascript-foreach-ad42fdc9
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a>
<a href="#L-2">2</a>
<a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>for (var i in bearings){
</span><span id="L-2"><a name="L-2"></a> var item = bearings[i];
</span><span id="L-3"><a name="L-3"></a>}
</span></pre></div>
</td></tr></table>