Skip to content

Commit cbfec24

Browse files
committed
Merge pull request #6 from juliepagano/master
Modify explanation of zero-indexed arrays
2 parents 1eb311f + 40e4de1 commit cbfec24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

class2.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ <h3>Arrays -- returning values</h3>
147147
</code></pre>
148148
</div>
149149
<div class = "fragment">
150-
Nerds are weird, so we start counting at 0.
150+
Arrays in JavaScript are "zero-indexed", which means we start counting from zero.
151151
<pre><code contenteditable class = "javascript">
152152
var rainbowColors = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'];
153153
var firstColor = rainbowColors[0];

0 commit comments

Comments
 (0)