Learning JS (ch2) Flashcards

1
Q

What coems to mind?

A

Know your browser environment. This obviously leads to more questions than answers. Certain technologies have made having to master ones browser environment obsolete, what are those technologies and how do they work to alleviate my havign to adjust code to browsers?

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

What are the three things you should know about a browser to be well adapted to writing code for it?

A

The following are the global ways in which JS interacts with different browsers. When coding you need to check if certain browsers offer feature support!

Best practices.

Convention/Rules

Rendering speeds.

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

What is AJAX and how is it relevant to your web development?

A

AJAX is short for asynchronous JS and XML, it is essentially an XML HTTP request that is made, beneath teh surface, while users are on a website, that upon completion then updates the webpage without having to reload the page.

The JS does most of the work in using the necessary data from the server responses.

The X refers to XHR which is an API that does the actual getting from the server. JS uses XHR to handle the client/server communication.

https://www.youtube.com/watch?v=masMZc3J03I

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

What are three main things JS can do?

A

JS can help modify HTML

JS communicates with the server (often w/ AJAX)

JS stores data

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

JS helps store data so that expensive HTTP requests don’t have to be made frequently. What are the 6 data storage tools available to JS?

A

Arrays : jasons A shaped bluelights

Variables : jasons v shaped open suitcase

Objects : dead body

JSON : the man himself

Cookies : man’s gotta eat

A VITAMIN C ORANGE JUICE.

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

What tools are built to help you catch bugs?

A

JSLINT and the Chrome dev tool Console are great debuggign tools.

JSLINTcreated by Douglas Crockford, is a tool to catch bugs.

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

Fallback code, what is it and how important is it?

A

http://www.hongkiat.com/blog/css-javascript-fallback-methods/

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