There are a bunch of tutorials in the Coding interface. Some (Agent Dig & Agent Tower) are more useful than others (Chicken Rain), but something can be learned from all of them. Depending on what your code is meant to do, your code might run as a chat command or maybe start when some condition in the game changes. You must complete a minimum of 10 of the tutorials and follow the steps. I may ask you to show me the results of at least six of them.
Remember: Tutorials using the Agent or Builder to build things will save you a lot of time later.