An unordered list should be used when the order of the list does not change the meaning.
The bullet style can be changed in CSS. For example, under the <ul>, you would put list-style-type: circle (or whatever shape.)
An ordered list should be used for instructions and other things where the order can potentially change the meaning of the information.
To change to numbers on the list, you can either add an attribute in the HTML doc that says <ol start="4"> if you wanted to start at 4. Alternatively, if you wanted to change the type of numbers used (for example, using Roman numerals), you could add the HTML attribute <ol type="I">
Margin defines the space between the border and other elements. The padding the space between the contents and the border. The box’s area is everything inside of the borders. The area of the box does not include what it in the margins.
The box model is the width, height, padding, and margins elements.
Any data type can be stored in an array. This includes strings, and numbers, as well as other arrays and objects.
const people = [[‘pete’, 32, ‘librarian’, null], [‘Smith’, 40, ‘accountant’, ‘fishing:hiking:rock_climbing’], [‘bill’, null, ‘artist’, null]];
The array is not valid beause of the ‘fishing:hiking:rock_climbing’ element. Colons can only be used in objects (I think) and underscores can’t be used.
x += y adds y to x x *= y multiplies x by y x ** y takes x to the power of y x && y is a conditional that checks if both x and y are true x || y is a conditional that checks if either x or y are true
let a = 10; let b = ‘dog’; let c = false;
// evaluate this (a + c) + b;
The result would be ‘10dog’ When 10 and false are added, the result (a + c) is just 10. When 10 is then added to ‘dog’, type coersion occurs and 10 becomes a string, which is then concatenated with ‘dog’
A conditional statement could be used if you are checking to see if the user has input the correct answer, like we did in the labs. Once the correct answer is given, the next question is asked.
A loop can be used when you want to do something to an entire array, or to an array until you reach a certain value. For example, if you are checking to see if an array contains a certain value, you could use a loop to go through an array and check for an exact match within the array.
I want more practice using the CSS Box model. I feel like I get the idea, but putting it into practice is still foggy.