Week 7 - Web Flashcards
What does it mean when it is said that a function in JavaScript is ‘first class’?
- they may be assigned
- they may be stored in variables, arrays and objects
- may be passed as parameters to other functions
What types are passed by value in JS?
strings
numbers
booleans
What types are passed by reference in JS?
object
function
array
What is a lambda function?
a syntactically
compact alternative to a regular function
declarations
What does the prototype property do?
permits the addition of new properties
What allows access to the DOM at the client side?
The JavaScript DOM API
What is the global object when JS is executing in a browser?
window in which the execution occurs
What does the Navigator class include?
- name of the browser
- platform
- human language of browser
- if cookies are enabled
Where do most of the objects in the DOM inherit from?
Node class
What is the parent to the tag?
document object
What properties does the Document object have?
doctype - from header
implementation - the actual implementation object
documentElement - the element for HTML docs
What does JSON stand for?
Javascript Object Notation
What is JSON?
syntax for storing and exchanging data
Give some elements of JSON syntax?
- data is in name value pairs
- data is separated by commas
- curly braces hold objects
- square brackets hold arrays
What are the types in JSON?
string number object array boolean null