reading-notes

Code-Fellows reading notes.

View the Project on GitHub bkasprzyk19/reading-notes

<==Back

From the Duckett HTML book:

From the Duckett JS Book:

creating tables


<table>
    <tr>
        <td>15</td>
        <td>45</td>
        <td>65</td>
        <td>17</td>
      </tr>
      <tr>
        <td>15</td>
        <td>55</td>
        <td>85</td>
        <td>17</td>
      </tr>
      <tr>
        <td>15</td>
        <td>65</td>
        <td>65</td>
        <td>37</td>
      </tr>
</table>

Pears 15 45 65 17
Oranges 55 85 17
15 65 65 37

See many other examples on pages 130-138

OBJECT CONSTRUCTOR NOTATION

OBJECT – PROPERTY NAME – PROPERTY VALUE


var hotel = {
 name: 'Quay',
 rooms: 40,
 booked: 25,

checkAvvailability: function() { return this.rooms - this.booked;}


}