string ${this is a variable} more string characters
list of elements/items. Each element has an index start at [0] (the [0]is pronounced at index zero)
true
i < parkNRec.length
>)for (let i=0; i < parkNRec.length; i++>) { //code executes here }
arrayName.unshift(‘newValue’); //adds the elemet to the front of the array, shift all the other indecies
- { box-sizing:border-box; }
take up the entire width of their parent. will know any sigbling elements to the next line.
<span>
: no top/bottom margins, inline elements, flow with the content
<div>
for instance will take up the entire space available regardless of the width, unless specified to be changed to display: inline-block
can be cleared with clear:both;
div-hover
{ color: green } /*color changed to green when hovered over the element selected
type
or CSS property list-style-type
type
or CSS property list-style-type
<span>
(inline by default and do not force line breaks), <ul>
(set to inline-flex creates an inline box containing some flex items),<h1>
and <p>
have outer display type of block (box break onto new line, and width and height are respectedThe array in the example is a valid array. The values can be accessed by indecies
+=
adds the result of the right operand and assigns the result to the variable;%=
divides the variable by the value of the right operand and assigns the remainder to the variable&&=
only assigns if x is true||=
only assigns if x is falsylet a = 10; let b = ‘dog’; let c = false; (a + c) + b; //evalueates to “10dog”
I want to see how everything come together with loops and conditional statement. So far I have a pretty boring website and I hope to make it better and have a more smooth presentation.
https://developer.mozilla.org/en-US/docs/Web/HTML ↩
https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model ↩
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays ↩
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators ↩
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals ↩
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Looping_code ↩