Skip to content

Commit

Permalink
Modify explanation of zero-indexed arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
juliepagano committed Mar 8, 2013
1 parent 5226e52 commit 40e4de1
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 40e4de1

Please sign in to comment.