what is Domain Modeling
Domain modeling is the process of creating a conceptual model in code for a specific problem. Also to vaidate the undersranding of a specific problem among various stakeholders
How to define a contructor and initalize properties ?
To define the same properties between many objects, you’ll want to use a constructor function. Below is a table that summarizes a JavaScript representation of an EpicFailVideo objec
Generate random numbers
To model the random nature of user behavior, you’ll need the help of a random number generator. Fortunately, the JavaScript standard library includes a Math.random() function for just this sort of occasion.
Tables
Long Tables
There are three elements that help distinguish between the main content of the table and the first and last rows (which can contain different content)
< thead >
The headings of the table should sit inside the <thead> element.
< tbody >
The body should sit inside the < tbody > element.
< tfoot >
Old Code:
Width & Spacing
Border & Background
The border attribute was used on both the <table> and <tdelements to indicate the width of the border in pixels.
How to create an Object
1. Create new object using a combination of the new Keyword and the object constructor function.
2. Having created the blank object, you can add its properties and metthods
Updating an object
TO update the value of properties, use dot notation or square brackets.
CREATING MANY OBJECTS:
CONSTRUCTOR NOTATION
Sometimes you will want several objects to represent similar things.
Object constructors can use functionas a template for creating objects. First, create the template with the object’s properties and methods.
CREATING OBJECTS USING CONSTRUCTOR SYNTAX
CREATING OBJECTS USING CONSTRUCTOR SYNTAX
ADDING AND REMOVING PROPERTIES
Array are Objects
They are actually a special type of object