Starting to Tic...
Is any of this starting to tic, 'er... I mean click? Hopefully it is. You should start seeing repeating patterns in the use of statements and program structures. Basically, you're initializing variables by giving them names and assigning values. Then you're performing some operation on the values. Finally, you're outputting the values as plain or marked-up text for display.
So, from the requirements we developed in class, it's time to start building your own little dynamic game of Tic Tac Toe.
Exercise #6
A. Write a function that takes three numeric values as its arguments and returns their sum.
B. Write a function that takes three alphanumeric values as its arguments and generates a row of three divs, as defined by your HTML Tic Tac Toe grid. Each div will contain a single image file. The source name for each image file, from left to right, will be the respective value passed to your function as an argument.