Javascript Flashcards

1
Q

Explain the relationship between HTML, CSS, and Javascript

A

HTML defines the elements of the page, CSS styles those elements, and JS describes the behavior of those elements.

Note: wherever you go, you will need to know Javascript. It describes every interaction on most modern Web pages

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

Javascript is an ____ language

A

Interpreted. It is evaluated line by line at run time

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

There must be an ___ that can evaluate the code you write

A

Interpreter

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

Javascript runs your code in what manner?

A

2-step, parses and rearranges line by line, then actually runs it line by line. VERY IMPORTANT TO UNDERSTAND

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

Javascript uses an event-driven programming style

A

Listens for a an EVENT while doing other things and executes remembered instructions

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

What is software

A

Software is a sequence of instructions that we build and provide to a computer, when then ‘mindlessly’ runs those instructions.

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

Difference between interpreted and compiled languages?

A

Compiled languages do some or all of this translation ahead of time, while interpreted do on the fly, immediately before a computer needs it

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

Whats a good way to think of booleans?

A

In programming, like a traditional light switch or perhaps a yes/no question on a test

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

Difference between = and ==?

A

= sets things, and == tests things

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

What is ?

A

The canvas element is perfect for making games in HTML. Offers all the functionality you need for making games

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

What is getContext(‘2d’)

A

The canvas element has a built-in object, called the getContext(‘2d’) with methods and properties for drawing.

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