Week 2: Functions

Function is a code that performs an action. Function and loop are similar in some way because it groups codes to minimize the lines used in coding. The types of functions that I used today in ‘code.com’ are functions such as drawSeaGrass, drawRectange, and drawTriangle. I think using functions and looping them is the best way to simplify the codes I use in coding.

Leave a comment

Design a site like this with WordPress.com
Get started