There are 3 kinds of statements: Function calls, Assignment Operations (arguments or parameters), and Control Structures (;)
So far, we’ve been doing function calls.
1 2 |
line(0, 0, 200, 200); |
- line is the function name, like a verb
- the arguments or parameters to the functions are the values and are surrounded by parenthesis
- each statement ends with a semicolon ‘;’ character
Complete Activity 5