Skip to content

Commit

Permalink
Merge pull request #6 from juliepagano/master
Browse files Browse the repository at this point in the history
Modify explanation of zero-indexed arrays
  • Loading branch information
izzyjohnston committed Mar 8, 2013
2 parents 1eb311f + 40e4de1 commit cbfec24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class2.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h3>Arrays -- returning values</h3>
</code></pre>
</div>
<div class = "fragment">
Nerds are weird, so we start counting at 0.
Arrays in JavaScript are "zero-indexed", which means we start counting from zero.
<pre><code contenteditable class = "javascript">
var rainbowColors = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'];
var firstColor = rainbowColors[0];
Expand Down

0 comments on commit cbfec24

Please sign in to comment.