reading-notes

Read: 07 - HTML Tables; JS Constructor Functions

HTML Tables:

An HTML table is defined with the <table> tag.

Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold and centered. A table data/cell is defined with the <td> tag.

Example

Note: The <td> elements are the data containers of the table. They can contain all sorts of HTML elements; text, images, lists, other tables, etc.

Functions, Methods, and Objects in JavaScript

A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when “something” invokes it (calls it). Example function myFunction(p1, p2) { ` return p1 * p2; // The function returns the product of p1 and p2}`

creat object constructor notation in javascript constructor

Accessing JavaScript Properties The syntax for accessing the property of an object is:

ADDING AND REMOVING PROPERTIES

THIS (IT IS A KEYWORD)

The keyword this is commonly used inside functions and objects. Where the function is declared alters what this means. It always refers to one object, usually the object in which the function operates.

constructor

Browsers come with a set of built-in objects that represent things like the browser window and the current web page shown in that window. These built-in objects act like a toolkit for creating interactive web pages.

Summary: