JavaScript — Dynamic client-side scripting Flashcards

1
Q

What is JavaScript?

A

An interpreted programming language that conforms to the ECMAScript specification. JavaScript is high-level, often just-in-time compiled, and multi-paradigm. It has curly-bracket syntax, dynamic typing, prototype-based object-orientation, and first-class functions.

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

What does API stand for?

A

Application Programming Interface.

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

What is a simple way of thinking about API’s?

A

Extra superpowers to use in your JavaScript code.

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

What is an API?

A

Ready-made sets of code building blocks that allow a developer to implement programs that would otherwise be hard or impossible to implement.

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

Give an analogy to how API’s are helpful.

A

They do the same thing for programming that ready-made furniture kits do for home building — it is much easier to take ready-cut panels and screw them together to make a bookshelf than it is to work out the design yourself, go and find the correct wood, cut all the panels to the right size and shape, find the correct-sized screws, and then put them together to make a bookshelf.

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

What two categories do API’s generally fall into?

A

Browser and Third party APIs.

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

What are Browser API’s?

A

They’re built into your web browser, and are able to expose data from the surrounding computer environment, or do useful complex things.

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

What does the DOM (Document Object Model) API allow you to do?

A

Manipulate HTML and CSS, creating, removing and changing HTML, dynamically applying new styles to your page, etc.

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

How would you know when the DOM has been used?

A

Every time you see a popup window appear on a page, or some new content gets displayed.

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

What are some examples of Browser API’s?

A

DOM (Document Object Model) API
Geolocation API
The Canvas and WebGL APIs
Audio and Video APIs like HTMLMediaElement and WebRTC

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

What does the The Geolocation API do?

A

Retrieves geographical information. This is how Google Maps is able to find your location and plot it on a map.

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

What does the Canvas and WebGL APIs allow you to do?

A

Create animated 2D and 3D graphics.

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

What do Audio and Video APIs like HTMLMediaElement and WebRTC allow you to do?

A

Really interesting things with multimedia, such as play audio and video right in a web page, or grab video from your web camera and display it on someone else’s computer.

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

What is something to note about Browser API’s?

A

Many of them won’t work in an older browser.

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

What will you need to consider when you get closer to delivering production code (i.e. real code that real customers will use)?

A

Cross browser testing.

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

What are third party API’s?

A

APIs That are not built into the browser by default, and you generally have to grab their code and information from somewhere on the Web.

17
Q

What are some examples of third party API’s?

A

Twitter API
Google Maps API
OpenStreetMap API

18
Q

What does the Twitter API allows you to do?

A

Things like displaying your latest tweets on your website.

19
Q

What does the Google Maps API and OpenStreetMap API allows you to do?

A

embed custom maps into your website, and other such functionality.