Week 4 - Web Flashcards

1
Q

What is an event handler?

A

something which can call code client side uploaded from the server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What can we use to manipulate webpages?

A

DOM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does DOM stand for?

A

document object model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why can server side be any language possible?

A

only needs to recieve requests and send HTML pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe client-side web computation and processing?

A
  • actions specific to a user
  • local processing, fast response
  • takes load off server
  • reduces network load
  • may incur local storage and processing overhead
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe server-side web computation and processing?

A
  • common content generated on demand
  • benefit for many users accessing same content
  • higher overhead at server for each page/document to be dynamically generated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is dynamic typing?

A

when a type is assigned when a value is assigned

- but typing is strong

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are javascript primitive types?

A

numbers
strings
booleans

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are javascript trivial types?

A

null

undefined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are javascript composite types?

A

object

array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe numbers in JS

A

8-byte floating point representation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does 3 === denote?

A

checks the type

strict equality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what are the 3 variable keywords?

A

let
var
const

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does == denote

A

converts type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Node.js

A

it is an asynchronous event driven
JavaScript runtime
Node is designed to build scalable network
applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens on each connection in node?

A

Upon each connection the callback is fired,
but if there is no work to be done, Node will
sleep

17
Q

What does the DOM identify?

A
  • the interfaces and objects used to represent and manipulate a document
  • the semantics of these interfaces and objects
  • the relationships among these interfaces and objects
18
Q

What is the JS document?

A

the html currently being displayed

19
Q

What is the JS window?

A

the OS window hosting the page

20
Q

What is the JS navigator?

A

the browser application in use

21
Q

What is the JS screen?

A

the physical monitor in use

22
Q

What JS do we use to find objects?

A

document.getElementById()

23
Q

What are some events that occur, that JS can be bound to?

A
  • page starting loading
  • use clicks a link
  • user hovers their mouse over some content
  • form submitted
24
Q

Where should javascript be included on a webpage?

A

just before

25
Q

Why should JS be at the bottom of the page?

A

allows page to load and as much of the DOM tree to be

created

26
Q

When are scripts executed?

A

executed in order of appearance during the

browsers HTML parsing process

27
Q

Where should you define all javascript elements? And why?

A
  • in the HEAD section, since always processed before BODY
  • so that the JavaScript objects that represent
    the body will have been created