Please enable JavaScript to use CodeHS

AP CSA: MOD-2.C.3

CodeHS Lessons

A precondition is a condition that must be true just prior to the execution of a section of program code in order for the method to behave as expected. There is no expectation that the method will check to ensure preconditions are satisfied.

1.7 Commenting Your Code
11.3 Documentation with Comments
1.7 Commenting Your Code
11.3 Documentation with Comments
5.3 Documentation with Comments
3.7 Commenting Your Code
1.7 Commenting Your Code