Functions Flashcards

1
Q

What is a function?

A

a series of statements grouped together to perform a specific task

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

Why are functions useful?

A

they can be used in a myriad of situations

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

How do you call a function?

A

function();

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

What are the parts of a function definition?

A
function keyword, function name, parameters and code block
What is the difference between a parameter and an argument? a parameter a name that you pass the arguement into
How well did you know this?
1
Not at all
2
3
4
5
Perfectly