reading-notes

View on GitHub

lists

there are three types of list

boxes

You can set several properties that affect the appearance of these boxes we can change the Box Dimensions height and width and we can limeted width and height by min-width-height or max-width-height

The padding and margin properties are very helpful to add space between the items the page

we can ues css on boxes to mack them as we like

ARRAYS

An array is a special type of variable. It doesn’t just store one value; it stores a list of values.

if eles statment

if true it will run the first code if fales it will run the secound one

switch statment

A switch statement starts with a variable called the switch value. Each case indicates a possible value for this variable and the code that should run if the variable matches that value

operators and loops JavaScript includes operators as in other languages. An operator performs some operation on single or multiple operands (data value) and produces a result.

Comparison Operators JavaScript language includes operators that compare two operands and return Boolean value true or false. == Compares the equality of two operands without considering type. === Compares equality of two operands with type. != Compares inequality of two operands. Checks whether left side value is greater than right side value. If yes then returns true otherwise false. < Checks whether left operand is less than right operand. If yes then returns true otherwise false. = Checks whether left operand is greater than or equal to right operand. If yes then returns true otherwise false. <= Checks whether left operand is less than or equal to right operand. If yes then returns true otherwise false.

loops JavaScript supports different kinds of loops: for - loops through a block of code a number of times. for/in - loops through the properties of an object. for/of - loops through the values of an iterable object. while - loops through a block of code while a specified condition is true

the main difference between main and while the structer of each loop the secound one is when i dont know ho many time the loop is