Tables help with the portrayal of important data that the user might be interested in.
Constructors allow for the easy creation of objects based off of prior objects
Tables should not be used for page layouts because they “reduce accessibility for visually impaired users”, since tables involve more complex markup structures they have a lot of tags and can be “hard to write, maintain and debug”, “Tables are not auto. responsive” meaning they only take up the size of their content and don’t default to 100% of their parent element. - source
3 different semantic HTML elements used in a <table> are <td> which is a table cell and is the smallest container inside of the table, <tr> Which is used to place a new row so the previous row doesn’t grow with each new td element and the last is <th> which provide the table with headers that are place at the start of a row or column.
A constructor is a function that creates a new object based on a previous object so they have the same keys. Some advantages of constructors are that they are more efficient than creating a function that creates a new object and having to invoke the function and initialize the new object. It also reinforces code reusability and specializes in consistency between objects.
this in an object literal refers to the object that it is currently in while in a constructor it refers to the object being created by the constructor.
For number 2 in the constructor section, feel like this means a very similar thing in both objects and constructors.
Would like more light shed on prototypes and inheritance. It can’t be that easy to understand right?
“POJO” Plain Ole JS Object. brendan = {name: brendan, hair, true}
Constructor/”Factory”: a way to create a new object with a function so the new object will automatically have desired properties/methods.
