From 3dc4b5edc8786855f9a5288af021141b73ce1d2a Mon Sep 17 00:00:00 2001 From: Joe Frambach Date: Fri, 27 Mar 2015 10:40:15 -0700 Subject: [PATCH] String concat code blocks were not equivalent. If the array is empty, the "bad" code will return `` and the "good" code will return ``. Although I would prefer this over the for loop: function inbox(messages) { items = messages.map(function(message) { return '
  • ' + message.message + '
  • '; }); return ''; --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e80fd9b..209f1a1e 100644 --- a/README.md +++ b/README.md @@ -250,10 +250,10 @@ items = []; for (i = 0; i < length; i++) { - items[i] = messages[i].message; + items[i] = '
  • ' + messages[i].message + '
  • '; } - return ''; + return ''; } ```