Week #5 – Tutorials + JS Basics: Objects + Blog Question.

Tutorials:

Problem Set:

students.html /  students.js

Blog Questions:

Link to an example dynamic webpage that likely pulls data from a database to build the site – any social media site, newspaper, blog, etc. Take a screenshot of a typical “post” and propose an object data structure to store all the elements of the post. Use the Enlighter code embed tool to include your proposed object design in a code sample.

var tweet = {
    user_avatar: "barack.jpg",
    user_name: "BarackObama",
    user_handle: "@BarackObama",
    content: {
        date: "Aug 12 2017",
        text: ""No one is born hating another person because of the color of his skin or his background or his religion..."",
        media: "babies.jpg",
        links: {
            reply: function(){},
            retweet: function(){},
            like: function(){},
            share: function(){}
        }
    }
}

Leave a comment

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

css.php