Mobile App Quiz 2 Flashcards
HTTP stands for
hypertext transfer protocol
through HTTP, a server tells your computer…
how data is being transferred
HTTPS stands for
hypertext transfer protocol secure
through HTTPS, the server and computer…
communicate and agree upon an encryption before data is transferred
is it peer-to-peer/a direct line from you to the server?
no; there are switches, routers, DNS in between
what are the 3 different parts of HTTP
www, domain name, TLD
www is/stands for
is the web host server
stands for world wide web
what does the domain name do?
connects to an IP address (easier than typing out the IP)
what does DNS stand for and what does it do?
Domain Name Server; it is basically a phone book of name to IP address
what does TLD stand for?
top level domain name
what are some examples of TLDs?
.com, .org, .gov, .edu, .mil, .pro
what is FQDN?
Fully Qualified Domain Name = web host server + domain name + top level domain name
relative links
know how to get to it/pretty much saved to the server; links in the same relative location
../ goes to the parent directory of where you currently are
absolute links
exact location of a file generally not found in the server; a link through FQDN - actual URL for the page
Google prefers (relative/absolute) links
absolute
web components
custom HTML tags, non-standard, for functionality in a webpage; they create modular, self-contained chunks of code
DOM stands for ? and is a ? structure
Document Object Model; tree
each node on the DOM is
an object representing a part of the document
the DOM represents the page so that
programs/scripts (JS) can change the document structure, style, and content
ECMAScript 2015 stands for ? and is also known as ?
European Computer Manufacturer’s Association Script; ES6 (this is what we’ll be using)
all browsers are configured to ? from what year?
ES5 from 2009
ES6 is a standard, which means it is
a set of rules governing JS
ES6 introduces
classes
modules
sections of code that can export objects (i.e., functions, variables, arrays) and be imported anywhere in your application
modules are used heavily in ?
Ionic
promise
a JS function; a proxy for a value not necessarily known when the promise is created
a promise allows you to
associate handlers with an asynchronous actions eventual success value or failure reason; this lets asynchronous methods return values like synchronous methods (instead of immediately returning the final value, the asynchronous method returns a “promise” to supply the value at some time in the future)
callback
any executable code that is passed as an argument to other code
block scooping
ES6 allows you to use the let keyword to define a variable only within a block of code (creates a local variable to a block of code or a function)
(fat) arrow function
most popular ES6 feature
=>
the fat arrow function provides
shorter syntax (no need for the keyword function or return or curly braces, as they are implicit)
the fat arrow function is (a/an) ? function that does not have its own ?
anonymous; this, arguments, super, or new.target
TypeScript
a typed subset of JS that compiles to plain JS; used in Ionic; it provides (data) types like stricter OOP languages Java or C#
transpilling
converting from one language to another
ES6 is not supported by all browsers yet so…
Ionic uses a built in transpiler to convert the ES6 code to ES5