Functions Flashcards
1
Q
What is a function?
A
a series of statements grouped together to perform a specific task
2
Q
Why are functions useful?
A
they can be used in a myriad of situations
3
Q
How do you call a function?
A
function();
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