From 82fea6b1d41a08447a8921bfdf855ff7c59bf452 Mon Sep 17 00:00:00 2001 From: Eli Ezeugoh Date: Tue, 14 Apr 2015 12:17:30 +0100 Subject: [PATCH 1/2] push instead of array index assignment --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c41b1ecb84..c3a35fc120 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Table of Contents 1. [Types](#types) - 1. [Objects](#objects) + 1. [Objects](#objects)S 1. [Arrays](#arrays) 1. [Strings](#strings) 1. [Functions](#functions) @@ -250,7 +250,7 @@ items = []; for (i = 0; i < length; i++) { - items[i] = '
  • ' + messages[i].message + '
  • '; + items.push('
  • ' + messages[i].message + '
  • '); } return ''; From ac9a9b7b924150e5755a92c631a5fbce5a2a1bf0 Mon Sep 17 00:00:00 2001 From: Eli Ezeugoh Date: Tue, 14 Apr 2015 16:45:46 +0100 Subject: [PATCH 2/2] remove extraneous S --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3a35fc120..d278ef6671 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ## Table of Contents 1. [Types](#types) - 1. [Objects](#objects)S + 1. [Objects](#objects) 1. [Arrays](#arrays) 1. [Strings](#strings) 1. [Functions](#functions)