Javascript Objects

(Assignments here & here)

Tutorials 

Problem Set

Blog Questions

  • Reddit uses an array of objects.
var redditPosts = [
    {
        post_type: "Info Thread",
        post_title: "Questions & Suggestions Thread",
        post_link: "https://www.reddit.com/r/nbastreams/comments/beh7dn/questions_suggestions_thread/",
        post_points: 139,
        post_subreddit: "r/nbastreams",
        post_author: "u/invmini",
        time_posted: value, //value based on created time function
        post_comments: [] //array of comments with this post
    }
]

Leave a Reply

Your email address will not be published. Required fields are marked *