<table>
element to create a table.<tr>
element to create a row.<td>
element to create a cell.<th>
element to create a header cell.colspan
and rowspan
attributes to merge cells.scope
attribute to specify the scope of a header cell.border
property to add borders to cells and the table.background-color
property to add colors to cells and the table.text-align
property to align text within cells.font-weight
property to make header cells bold.new
keyword and returns a new object.this
keyword to refer to the object being created.new
keyword to create a new object from the constructor.this
keyword to refer to the object inside the constructor or method.new
keyword to create a new object from the constructor.Q: Explain why we need domain modeling. A: To create a shared understanding, provide a blueprint for software solutions, and identify potential problems and edge cases.
Q: Why should tables not be used for page layouts? A: They make code more difficult to read, modify, and maintain and do not provide the same level of flexibility and accessibility as using CSS for layout.
Q: List and describe 3 different semantic HTML elements used in an HTML <table>. A: <thead> - groups header content, <tbody> - groups body content, <tfoot> - groups footer content.
Q: What is a constructor and what are some advantages to using it? A: A function used to create objects in JavaScript. Advantages include creating multiple objects with the same properties and methods and making code more organized and easier to maintain.
Q: How does the term “this” differ when used in an object literal versus when used in a constructor? A: In an object literal, “this” refers to the object that contains the function or property. In a constructor, “this” refers to the object being created.
Q: Explain prototypes and inheritance via an analogy from your previous work experience. A: Prototypes are like templates used in construction to build multiple houses with the same design. Inheritance is like passing down traits from a parent to a child.
Q: Explain prototypes and inheritance via an analogy from your previous work experience. A: We had a specific format that we were required to use for some of our products (prototype) and we passed down the knowledge of how to do this specific format to all subordinate analysts. (inheritence)