Learning JS (ch2) Flashcards
What coems to mind?
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?
What are the three things you should know about a browser to be well adapted to writing code for it?
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.
What is AJAX and how is it relevant to your web development?
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
What are three main things JS can do?
JS can help modify HTML
JS communicates with the server (often w/ AJAX)
JS stores data
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?
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.
What tools are built to help you catch bugs?
JSLINT and the Chrome dev tool Console are great debuggign tools.
JSLINTcreated by Douglas Crockford, is a tool to catch bugs.
Fallback code, what is it and how important is it?
http://www.hongkiat.com/blog/css-javascript-fallback-methods/