- 28th Jul 2020
- 06:02 am
- Admin
Javascript Assignment Question
1. Make a program that draws a 40 radius circle where ever the mouse is. Change the circle's fill to a new, random color whenever the mouse is clicked.
2. Make a program with four numbers in an array - 400,350,200, &75. Starting with the first number in the array, draw a gray square in the center of the page of that size (so first 400x400). Whenever the mouse is over the square, move to the next size in the array, progressing down to 75. Once at 75, stay at that size forever.
Javascript Assignment Solution
Program 1
Program 2