Lesson Notes for Code Camp
- Kinds of Errors
- Syntax
- Runtime
- Semantics
Using an identifier that hasn't been created yet
-
Does a funtion have to have parameters? a. No
-
What happens if we call a function without providing a value for one or more input parameters? a.
-
Does a function have to return a value? a. yes
-
What happens if we have a function that doesn't return a value, but we try to store a return value in a variable? a. Well, then we will get an error and this is where the program will crash.