JavaScript Cross Flashcards

1
Q

A parameter acts like a _____________ in the body of a function

A

Variable

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

JavaScript uses _____________ when passing arguments to functions

A

pass by value

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

You can declare your functions _____________ in your JavaScript file

A

Anywhere

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

What gets returned from a function without a return statement

A

Undefined

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

Local variables disappear when the _____________ returns

A

Function

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

If you forget to declare your locals, they’ll be treated like _____________

A

Globals

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

A local variable can _____________ a global variable

A

Shadow

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

A variable with global _____________ is visible everywhere

A

Scope

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

Use functions so you can _____________ code over and over again

A

Reuse

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

The variables that arguments land in when they get passed to functions

A

Parameters

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

To get a value back from a function, use the _____________ statement

A

Return

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

What gets passed to functions?

A

Arguments

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

When you reload your page, all your _____________ gets re-initialized

A

Variables

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

_____________ through your code means following the execution line by line

A

Tracing

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

It’s better to use _____________ variables when you can

A

Local

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

Extra arguments to functions are _____________

A

Ignored