JavaScript 411 Flashcards

1
Q

JavaScript is

A

3 languages all web developers must learn

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

The 1st languages to study is

A

HTML to define the content of web pages

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

The 2nd languages to study is

A

CSS to specify the layout of web pages

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

The 3rd languages to study is

A

JavaScript to program the behavior of web pages

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

JavaScript and Java are

A

completely different languages

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

JavaScript can do what to HTML

A

Javascript can change:

Content
Attributes
Styles
Elements

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

JavaScript accepts what type of quotes:

A

both double and single quotes

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

HTML Attributes

A

Can be changed in Javascript

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

HTML Styles (CSS)

A

Can be changed in Javascript

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

HTML Elements

A

Can hidden in Javascript

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

How can you hide HTML elements in Javascript?

A

by changing the display style

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

How can you hide HTML Styles in Javascript?

A

variant of changing an HTML attribute

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

How can you show HTML element in Javascript?

A

by changing the display style

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

The Tag

A

Code must be inserted between and tags

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

.

A

Old JavaScript examples may use a type attribute

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

what is a JavaScript Functions?

A

a block of JavaScript code

17
Q

how can the function be executed?

A

when “called” for

18
Q

a function can be called

A

when an event occurs

19
Q

Where can a Script be placed?

A

A Scripted can be in the , or in the section of an HTML page, or in both

20
Q

Is there a good location for a script can be within a HTML?

A

Placing scripts at the bottom of the element improves the display speed, because script compilation slows down the display.

21
Q

Is there another place where can Script be placed?

A

Scripts can also be placed in external files

22
Q

What is the file extension for javascript?

A

.js

23
Q

True or False

An external script can contain tags?

A

False

External scripts cannot contain tags

24
Q

What are the advantages for external javascript?

A

It separates HTML and code
It makes HTML and JavaScript easier to read and maintain
Cached JavaScript files can speed up page loads

25
Q

External References

A

External scripts can be referenced with a full URL or with a path relative to the current web page