Programming Videos

  • View all videos
  • blank
  • Introduction to objects in JavaScript
    mrdaniel published this on 1/3/16 | javascript, objects
    Comments
  • +
  • 2
  • -
  • If you were to add another attribute to an object that has many instances, how would you come back and insert null values for those attributes in those instances at a later date? Would that have to be done manually or is there a way to iteratively splice null values into an object at a particular key in that object? For example: If I have an address book and I want to insert a new attribute 'Company_Name' to each one of my records (or instances of those objects). Also, what about timestamps in objects? Can I just set a value to GetDate() or GetTime()? Coming from a background in SQL, I am interested in learning more about how to use the `new` keyword. "If music be the food of love, play on."
  • +
  • 1
  • -
  • You explained this really well. I always had trouble getting it. Thank you.
  • +
  • 1
  • -
  • @Mattgwater, Sorry about the confusion, this video used to come before the following tutorial which is why I said that it was the next tutorial in the list: https://coderbyte.com/tutorial/common-array-methods-in-javascript
  • +
  • 0
  • -
  • The end of the tutorial says the next tutorial will have a list of common object methods you can use , but I don't see anything.
    Log in to submit a comment.