reading-notes

Learn HTML

This topic matters becsuse it will help with my understanding of writing code.

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

When something is not being ranked.

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

using the list-style-type property.

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

An unordered list ( <ul> ) is used to create a list of items in no particular order i.e. the order of items is not relevant. By default, the items in this list will be marked with bullets. Whereas, an ordered list ( <ol> ) is used to create a list of items in a specific order. https://accessibleweb.com/question-answer/what-is-an-unordered-list-vs-an-ordered-list/#:~:text=Answer,items%20in%20a%20specific%20order.

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

Type attribute allows us to change the style of numbers in an ordered list. Explanation: The < li > tag includes two attributes – type and value. The type attribute is used to modify the order numbering in the list item https://brainly.in/question/13361965#:~:text=Answer%3A,numbering%20in%20the%20list%20item.

Learn CSS

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

Padding, margin and border will cause other elements to be pushed away from the box. https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model

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

Every box is composed of four parts (or areas), defined by their respective edges: the content edge, padding edge, border edge, and margin edge https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model#:~:text=Every%20box%20is%20composed%20of,border%20edge%2C%20and%20margin%20edge.

Learn JS

What data types can you store inside of an Array?

They can store numbers, strings, boolean values (true and false), characters, objects, and so on. But once you define the type of values that your array will store, all its elements must be of that same type.

Is the people array a valid JavaScript array? If so, how can I access the values stored? If not, why?

No, because there are numbers and not just names in the line of code.

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

Declaring Variables Shorthand It’s good practice to declare your variable assignments at the beginning of your functions. This shorthand method can save you lots of time and space when declaring multiple variables at the same time.

Short-circuit Evaluation Shorthand When assigning a variable value to another variable, you may want to ensure that the source variable is not null, undefined, or empty. You can either write a long if statement with multiple conditionals, or use a short-circuit evaluation

The Ternary Operator This is a great code saver when you want to write an if..else statement in just one line

If Presence Shorthand This might be trivial, but worth a mention. When doing “if checks”, assignment operators can sometimes be omitted.

JavaScript For Loop Shorthand This little tip is really useful if you want plain JavaScript and don’t want to rely on external libraries such as jQuery or lodash.

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

False. I have no idea.

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

If I am going 67 in a 65, I am speeding.

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

If I am typing in the wrong password in my bank account, I will keep getting asked or get locked out of my account.