start
start counting at a specific number, or type
to change the numbering type.Describe the CSS properties of margin and padding as characters in a story. What is their role in a story titled: “The Box Model”?
Margin and the Padding were guards of the Box. They are divided by a wall called the Border. Margin is outside the wall guarding against other Boxes, and Padding is inside taking care of the precious Content. They change their attributes as needed to complete the mission.
List and describe the four parts of an HTML elements box as referred to by the box model.
margin
to access related properties.border
to change related properties.padding
to change related properties.data types
can you store inside of an Array
?people
array a valid JavaScript array? If so, how can I access the values stored? If not, why?const people = [['pete', 32, 'librarian', null], ['Smith', 40, 'accountant', 'fishing:hiking:rock_climbing'], ['bill', null, 'artist', null]];
people[x][y]
where x and y are index numbers.List five shorthand operators for assignment in javascript and describe what they do.
x += y
, x -= y
, x *= y
, x /= y
, and x ^= y
. These shorthand operators for assignments. For these examples, the operator will evaluate a new X as the old X being affected by the operator to the left of the =
sign by Y. So in the first example, x = x + y
, and so on.
let a = 10;
let b = 'dog';
let c = false;
// evaluate this
(a + c) + b;
false
to zero, add it to 10, then convert 10 to a string and combine it with dog.Describe a real world example of when a conditional statement should be used in a JavaScript program.
An example of a real world example of a conditional statement would be useful is if an application needs to perform different actions depending on a variable of numerical values.