Creating An Object Instructor Notation
- The
new
Keyword and the object constuctor create a blank object
- you can then add properties and methods to the object
First
- first you create a new object using the
new
keyword and the object()
constructor function
Second
- having created the blank object you can add properties and methods
- use Dot notation
Third
- you can use this syntax to add properties and methods to any object you have created no matter which notation you used to create it
Updating an object
- to update the value of properties use dot notaion or square brackets
- they work on objects created using literal or constructor notation
- to delete a property use the
delete
keyword
- use dot notation to add new properties to the object but give it a value
- if the object does not have the property it will be added to the object
Tables
- represents information in a grid format
- allows us to understand complex data
- each block in the grid is referred to as a table cell.
<table>
element is used to create a table
- the contents are written out row by row
<tr>
indicates the start of each row
<td>
each cell is represented
<th>
used to make a heading of a column or row