Flashcards
Learn with Leon

Cards in this deck (90)
- 1What is the internet?Its a wire that connects two different kinds of devices. Client's side devices and the server's side devices

- 2How to get through the Trough of SorrowManage Frustration
Consistency
Taking Care of Yourself - 3Why do we follow the Golden Rule (separating HTML, CSS, JavaScript)?For organization
- 4HTML SyntaxSpelling and grammar rules

- 5Heading Elements(tags)

- 6Other text elements

- 7Nerd fightsBreak tags and horizontal tags don't need ending tags

- 8Assisted Device Elementsem tags to Italicise, strong to make it bold

- 9HeaderContent for the beginning of the document.
- 10Ordered list

- 11Unordered list

- 12Containing Elements

- 13When to use div?Used to divide parts of the html in a more specific and organised way. Although there other more semantic decisions that we can make these days.
- 14When to use section?We can group lots of content together
- 15When to use article?For contents that should be shared. Things that you can cut out and share
Ex. Newspaper articles, blog posts - 16When to use aside?For things like ads or sidebars
- 17FooterContent for the end of the document
- 18Deprecated Elements (things we no longer use)Can be part of CSS for separation concerns, therefore not really included in HTML

- 19Why do we need Progressive Enhancement?roughly 35% of America's rural residents - lack access to broadband

- 20Where does CSS go?inline, in the head and in a separate file.
* Separate file to adhere separation concerns - 21What are Classes?Classes are for selecting multiple elements within that class.
ex: .className - 22What are classes used for?For selecting multiple elements. Classes with the same value can be used multiple times per document

- 23What are IDs?It is used for selecting distinct elements.
ex: #idName
BONUS:
Only one id with the same value per document - 24What are IDs used for?IDs are used for selecting distinct elements. Only one id with the same value can be used per document.

- 25Font-familyFonts are files. The browser needs that file to know how to render a file.

- 26Four main ways to use colour in CSS

- 27Explain CascadeWhat comes below, can override what come above
*as long as it has SPECIFICITY
- 28What is this?Rule

- 29What is this?Selector

- 30What is thisDeclaration Block

- 31What is this?Declaration

- 32What is this?Property

- 33What is this?Value

- 34Explain this relationshipto select an element that is the direct child of the parent element


- 35Explain this relationshipTo select an element that is inside of another element without being the direct child of the parent


- 36Explain this relationshipTo select an element that is the next to the immediate sibling


- 37How many points of Specificity?


- 38How many points of Specificity?


- 39What is everything in web development?Everything you see is a box

- 40What does increasing the padding do?It increases the distance between the element itself and the border
- 41What to do when you don't know the answer?Go to MDN!!!
- 42Why is Independence day a true story?Binary, Upload, Boom. 'Murica
We are assuming alien language used in ship uses Binary(on/off) , and can build language up enough to infect mothership. - 43What is a program?Set of instructions you write to tell a computer what to do
- 44What is programming?Writing instructions in a language that the computer can understand.
- 45What is syntax?"Spelling and grammar" rules of a programming language
- 46What is Pseudo Code?Writing your process in plain language. The logic of what we want to happen.
- 47What does the declaration step do?Creates space in memory
- 48What are variables?Buckets we can hold data in. We tell the program to remember values to be used later on
- 49What can you store variables in?Strings, numbers, booleans, etc.
(to be updated) - 50Explain what Strings areStrings store texts and is surrounded by either single or double quotes
BONUS:
You can't use the same quotation marks in the inside of the string as the outside unless you "escape (/)" it. - 51What is camelCase?Is a variable convention, where the first word is lower case and the rest of the other words are upper case.
- 52What are the types of numbers in JavaScript?Integers: 23, 5, 2
or
Floats: 5.123, 4.23, 23.21
or
Signed: -120.388, +5, -19 - 53What are the Arithmetic in JavaScript?

- 54Logical Operators

- 55One equal sign means what?Assignment
- 56Two equal signs means what?Comparison of value
- 57Three equal signs means what?Comparison of value and type
- 58What is the danger bw Assignment and Comparison?Risk of reassigning value
- 59What are conditional syntax for?The ability to make decisions.
ex.
if(condition is true) {
//Do cool stuff
} - 60Multiple conditions characters&& : and
|| : or - 61What is an else...if statement?

- 62What are multiple conditions?

- 633 types of users?Accesibility, Web crawlers,
- 64What is a CMS?A content management system is a computer software used to manage the creation and modification of digital content. A CMS is typically used for enterprise content management and web content management
- 65What is DOM?Document Object Model. Rendering of the HTML and CSS
- 66What are loops?Enables to repeat an action multiple times
- 67Types of loopsif/else, for/each, while
- 68Loops - Forfor (let i=1)
- 69Loops - Whilelet count = 0
while (count < 5)
console.log(count)
count++ - 70Arrays- A data structure to store ordered collections.
-Array elements are numbered starting with zero
-Arrays have many methods to manage the order of elements - 71What are the two ways arrays can be created?Constructor or literal notation
- 72Array Constructorlet newArr = new Array ( )
- 73Declaring Arrayslet newArr = [ ]
- 74Array IterationIterates through an array passing in the value and index of each element

- 75array.shiftRemove first item in the array
- 76array.popRemove last item in the array
- 77array.unshiftAdd item at the beginning of the array
- 78array.pushAdd item to the end of an array
- 79array.mapReturns new array

- 80Ternary Functionconst headsOrTails = _ => Math.random < .5 ? 'heads' : 'tails'
- 81What are objects?- are a collection of variables and functions
-Objects represent the attributes and behaviour of something used in a program
-Object variables are called properties and object functions are called methods
-Objects store "keyed" collections - 82What are APIsA simple interface for a complex action
- 83destructured assingmentwe create a variable with the name of an object's key that is wrapped in curly braces { } and assing to it the object

- 84What is a function?It's a reusable set of instructions.
- 854 pillars of OOPEncapsulation, Abstractions, Inheritance, Polymorphism
- 86Encapsulationgroup related variables and functions that operate on them into objects.
*The fewer number of parameters, the easier it is to use and maintain that function - 87AbstractionsWe hide some of the properties and methods from the outside. It gives a simpler interface, reduce the impace of change
ex. DvD player: logical board inside, and buttons you interact with on the outside. You press play but you don't know what's happening inside. - 88Inheritancea mechanism that allows you to eliminate redundant code
- 89Polymorphisma technique that allows you to get rid of long if/else or switch/case statements
- 90Benefits of oopEncapsulation: reduce complexity + increase reusability
Abstraction: simple interface + isolate impact of change
Inheritance: eliminate redundant code
Polymorphism: refactor long swith/case statements
Information
- Description
- Flashcards on Learn with Leon, created by Nirel Chua on 26/02/2022.
- Created by
- Nirel Chua
- Views
- 9
- Rating