Lesson 8 Flashcards

1
Q

What is Java Script?

A

JavaScript is a scripting language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else.

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

How does JavaScript differ from HTML & CSS?

A

HTML provides the basic structure of sites, which is enhanced and modified by other technologies like CSS and JavaScript. CSS is used to control presentation, formatting, and layout. JavaScript is used to control the behavior of different elements. To test a JavaScript program, you often need to look at the display at several moments through time, and perhaps to interact with it.

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

How does JavaScript make an application dynamic and interactive?

A

Interactivity enables an end user to take an action in an application, usually by clicking a button or pressing a key. A dynamic application adjusts and responds to such actions by end users. JavaScript also expands the opportunities to animate displays, that is, to have parts of the display move and update while an end user watches.

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

What is a programming function?

A

A function is a segment of a program defined and performed in isolation from
other parts. The action of a function is the sequence of the actions of the statements inside of it.

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

What is JQuery?

A

JQuery is a programming library. JQuery is one of the most popular. Over half of the 10,000 most-visited Web sites in the world use jQuery.

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

What is a library?

A

A library is collection of resources, like pre-written function code and subroutines, that developers use to create programs.

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

What are examples of third-party libraries other than jQuery?

A

Other popular libraries include Dojo, MooTools, and YUI.

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

How can JavaScript be used to update the user interface?

A

You can add lines of Java code to HTML to update the UI based on the user actions e.g. keyboard strokes, mouse movement etc.

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

Which JavaScript method returns reference to the first element with a specific ID or Name attribute?

A

getElementById() method.

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

What type of language is JavaScript?

A

JavaScript is an object based language. “Object” is computer speak for “thing” or “element”.

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

What does the onLoad event handler do?

A

OnLoad “belongs” to HTML items; it triggers when its owner is complete. e.g. The onLoad for an
<img></img> image occurs when the image is fully rendered and visible.

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

Which HTML attribute can you use to show elements using JavaScript?

A

Show/hide responsively

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

Which property does JavaScript use to update the content of HTML elements?

A

JavaScript uses the innerHTML property to change the current content of HTML elements (referred to as “inner content”) or insert new content.

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

What does the CreateElement commando do?

A

You can use the createElement command and the appendChild method in JavaScript to add elements after the HTML is complete.

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