Code Structure

If you haven't already, download the files for this exercise: composition.zip

Look at the Composition Script's Functionality

Learn about the composition script's structure and see how we're creating object literals to define the characteristics of our lines and shapes.

Next, continuing learning about object literals.

Related Content

Learn about self-executing anonymous functions in the Scope and Closure tutorial.