reading-notes

Code Fellows 201

Day 03 Notes

Home

Reading

Learn HTML

Ordered and Unordered lists.

When should you use an unordered list in your HTML document?

How do you change the bullet style of unordered list items?

If not present and if no CSS list-style-type property applies to the element, the user agent selects a bullet type depending on the nesting level of the list

When should you use an ordered list vs an unorder list in your HTML document?

Describe two ways you can change the numbers on list items provided by an ordered list?

Learn CSS

The Box Model.

Describe the CSS properties of margin and padding as characters in a story. What is their role in a story titled: “The Box Model”?

List and describe the four parts of an HTML elements box as referred to by the box model.

Learn JS

Arrays. Operators and Expressions. Conditionals. Loops.

What data types can you store inside of an Array?

Is the 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]];

List five shorthand operators for assignment in javascript and describe what they do.

Read the code below and evaluate the last expression and explain what the result would be and why.

let a = 10; let b = ‘dog’; let c = false;

// evaluate this (a + c) + b;

The result would be 10dog because c is a boolean value and will not print (return a value to console with other data types) and a and b are different data typs so they are simple concanated.

Describe a real world example of when a conditional statement should be used in a JavaScript program.

Give an example of when a Loop is useful in JavaScript.