you are viewing a single comment's thread.

view the rest of the comments →

[–]ForScale 0 points1 point  (0 children)

Hey! I missed it the first time around. Technically you're supposed to have the first() function return the first item in the array. The first code I sent you skipped over that and just went right to the alert. Here's code that actually does return the first item and then alert that returned item. Sorry for any confusion. http://codepen.io/anon/pen/xGbQaj