Javascript Evaluation

Regardless of the level you came to the class with, you should be able to do a few things.

Start on task 1 and continue until your brain explodes. Each task builds on the previous.

Open computer, not open friends.

//Comment your code with name and date

 

Task 1

Write the code to draw a circle  in the center of the screen. Radius 50.

 

Task 2

Write the code to make the outline of the circle fat and a colour.

 

Task 3

Write the code to make a square with a different coloured skinny outline around the previous circle.

 

Task 4

Write the code to make a row with 8 of the previous diagrams. Use loops.

 

Task 5

Convert the code into a function called rowOfShapes(). Write the code to call the function, use loops to fill the entire screen with your shapes.

 

Task 6

Convert the code to only begin when a key is pressed.

 

Task 7

Convert the code to draw one row at a time when a key is pressed.

 

Task 8

Convert the code to draw single diagrams (recall, the diagram is the circle-square combo) instead of the entire row. Any order is fine. Each press fills in the screen until the whole screen is covered.

 

Done? :: Copy your last working code and email to jspence@johnoliver.ca