Using Objects
What we’ve done with functions so far is nice and all, but for the purposes of this example, it doesn’t add a whole lot of value. We could have just stashed the contents of drawCircle
into the for
loop itself, and everything would have been just fine:
Get hands-on with 1400+ tech skills courses.