Javascript Objects

(Assignments here & here)


Problem Set

Blog Questions

  • Reddit uses an array of objects.
var redditPosts = [
        post_type: "Info Thread",
        post_title: "Questions & Suggestions Thread",
        post_link: "",
        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 *