Learn Create Your Own Split Screen

Next Page

Let's look at our new function again.

The fillCircle is just a name I've made up. I could have called it "banana" if I wanted, but that wouldn't have been as clearly descriptive, and as you progress with this you'll come to appreciate why it's important to add clarity at every opportunity.

The (x, y, radius) are also things I've made up, and are the parameters I want my function to be given. The names I've chosen don't mean anything special, but I feel they're nicely descriptive.

What follows is a very special feature of Javascript (and many other computer languages) -- the curly brace: "{". It's a way of grouping statements or instructions, and is a way of saying that 'fillCircle' is defined as being everything within the opening and closing curly brackets.