For my code sketch, I created a Hanukkah themed sketch. I used javascript to make a menorah appear wherever you click on the page, and it says happy hanukkah at the top. I am getting used to javascript and it is becoming easier to create codes using it.
For my music.html project, I created a code that uses an event listener to change the color on the screen from blue to pink when you click on it. It is also coded so that when I added an audio file, it only appears on the odd click.
For the square quilt project, the code uses javascript to make a function with the input of x and styling techinques in order for the outline of squares to appear on the page. I edited the code to make each box appear green, and when you click on the boxes, a picture appears. It is coded with i+i=1 so that each time the function runs, it adds 1.
For my array project, I created a code that generates gifts. The event listener in the code is what allows for the gift to appear when the box is clicked on and the gifts are defined as var gifts and are linked as images. Math.round makes numbers rounded to a number between 1 and 5 when the box is clicked on. When one of these numbers appears, an image appears along with it.
At first, the car code uses an event listener so that when you click on any key, the car will move right on the screen. When if statements are added to the code, it makes it more specific so that the code can do two different things when certain keys are clicked on. When one arrow is pressed, the car will move to the right, and when the other is pressed, the car will move to the left.