From 40e4de156e501a6cc5849232e84855f6b2a89ead Mon Sep 17 00:00:00 2001 From: Julie Pagano Date: Thu, 7 Mar 2013 20:19:40 -0500 Subject: [PATCH] Modify explanation of zero-indexed arrays --- class2.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class2.html b/class2.html index e67bb56..44f379b 100644 --- a/class2.html +++ b/class2.html @@ -147,7 +147,7 @@

Arrays -- returning values

- Nerds are weird, so we start counting at 0. + Arrays in JavaScript are "zero-indexed", which means we start counting from zero.

       var rainbowColors = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'];
       var firstColor = rainbowColors[0];