Question: In this exercise, you will create a 7 x 7 checkerboard using only Javascript. Each color of the board should be a div element. The

In this exercise, you will create a 7 x 7 checkerboard using only Javascript.
Each color of the board should be a div element. The first div should be black, and should alternate colors from black to red.
Each div should be 60pxin height, and should be evenly stretched in the console. (If there are 7 spaces, what percentage of a screen would each one need to take up?)
Use the for loop provided for you to help create the board!
You wont have to change any of the CSS styling in the head, as long as the you set the correct width for each div. You should have 49 divs Use the for loop to help you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!