DAY5: Document flow and Box Model

Summary of Units

1. Realative units can be used to specify that adapts to the font siz or viewport size.
2. Ems defnes a length in terms of an element inheritated font size, except when specifying font size itself, in which case ems are in terms of the element inheritatedfont size.
3. Rems define a length in terms of the Fonts size speified on the root html element.
4. By scaling the root font size in a responsive design, elements on the page defined using ems and rems will scale at the same time.
5. Viewport-relative units define a length in terms of the viewport width or height.
6. A line height defined with a unitlss number will inherit more predictably to child element.

JAVASCRIPT

Ques. explain Data types

Ans. Javascript have range of data types for storing values

String: A sequence of characters enclosed in qoutes
Let myString= "Hello World"

Number: Numeric values,including integers and floating point
let myNumber = 42;

Boolean: Represent true or false values
let myBoolean = true;

Array: An ordered collection of values
let myArray = [1,2,3];

Null Intentionally represent no value
let myNull = null;

Object: Holds key value pairs. keys are strings and values be any data type.
let myObjeect = {name:johnjohns, age: 30}

Undefined: Signifies an uninitialized variable.
Let myUndefined; // undefined