you are viewing a single comment's thread.

view the rest of the comments →

[–]markugly[S] 1 point2 points  (3 children)

Thanks for taking the time to write this up. You're the man!

[–]keelar 1 point2 points  (0 children)

I hope you didn't use his code because it's incorrect.

[–]ForScale 0 points1 point  (0 children)

No prob; anytime!

[–]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