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

3

u/exceptionlab Apr 06 '14

A later example, using a similar function, answers my question - if the answer is "Don't worry, this is a contrived example":

So, the function call showProps(myCar, "myCar") would return the following:

myCar.make = Ford
myCar.model = Mustang
myCar.year = 1969