reading-note

https://eng-ehabsaleh.github.io/reading-note/

View on GitHub

Domain modeling

Domain modeling is the process of creating a conceptual model for a specific problem. And a domain model that’s articulated well can verify and validate your understanding of that problem. Here’s some tips to follow when building your own domain models.

<ol>

  • When modeling a single entity that'll have many instances, build self-contained objects with the same attributes and behaviors.
  • Model its attributes with a constructor function that defines and initializes properties.
  • Use the this variable within methods so you can access the object's properties and methods from inside.
  • Model its behaviors with small methods that focus on doing one job well.
  • Create instances using the new keyword followed by a call to a constructor function.
  • Store the newly created object in a variable so you can access its properties and methods from outside
  • </ol></b>

    Tabel in html

    <ol>

  • The table tag element is used to add tables to a web page.
  • A table is drawn out row by row. Each row is created with the tr tag element.
  • Inside each row there are a number of cells represented by the td tag element (or th tag element if it is a header).
  • You can make cells of a table span more than one row or column using the rowspan and colspan attributes.
  • For long tables you can split the table into a thead tag element, tbody tag element, and tfoot tag element.
  • </ol></b>

    Function methods and Object

    1. Functions allow you to group a set of related statements together that represent a single task.
    2. Functions can take parameters (informatiorJ required to do their job) and may return a value.
    3. An object is a series of variables and functions that represent something from the world around you.
    4. In an object, variables are known as properties of the object; functions are known as methods of the object.
    5. Web browsers implement objects that represent both the browser window and the document loaded into the browser window.
    6. JavaScript also has several built-in objects such as String, Number, Math, and Date. Their properties and methods offer functionality that help you write scripts.
    7. Arrays and objects can be used to create complex data sets (and both can contain the other).

    </b>