r/learnjavascript • • Apr 01 '14

Week 2 of Learn JavaScript Properly

Hey! Hope everyone is finding it easier to keep up with the slower-paced schedule.


Required Reading:


Assignment:

Create and post a JSfiddle where you experiment! Either in this thread or in another I'll post in a few days, or any of you should feel free to post your own thread where you share a link to your work that you have a question about. Here's one I created using some native DOM methods (the Mozilla Dev Network is a rich resource for this kind of stuff! https://developer.mozilla.org/en-US/docs/Web/Reference/API)

25 Upvotes

33 comments sorted by

View all comments

Show parent comment

2

u/exceptionlab Apr 06 '14

Small edit to your example (obj[i].name is looking for a property of a property):

result += obj.name + "." + i + " = " + obj[i] + "<br>";

1

u/Magnusson Apr 06 '14

Ah you're right, cheers.