Skip to content

Javascript Conventions

Sam Matthews edited this page Apr 14, 2015 · 4 revisions

#Javascript Conventions

For Loops

// when working with objects
for ( x in y ) { ... }

// when working with arrays
for ( var x; x < y.length; x++ ) { ... }
Clone this wiki locally