Please enable JavaScript to use CodeHS

Methods

Methods are bits of code that perform a specific task. This module teaches you how to define methods in your programs and uses the autograder to test if your methods are working correctly.


Try it!

Check out the programs you'll be able to make
view demos

Learning on CodeHS