Here is a breakdown of the code structure often used to solve this problem.

The body is typically a circle. The trick here is the . Remember that in CodeHS, circles are often drawn from their center. If the ghost needs to be in the middle of the screen, you’ll need to move(getWidth() / 2, getHeight() / 2) . 3. Creating the Eyes

// 4.2.1 Ghost - Standard Solution for (var i = 1; i <= 10; i++) { if (i % 2 === 0) { console.log("GHOST"); } else { console.log("ghost"); } }

for (var i = 1; i <= 10; i++) { if (i % 2 === 0) { console.log("GHOST"); } else { console.log("ghost"); } }

4.2.1 Ghost Codehs _verified_

Here is a breakdown of the code structure often used to solve this problem.

The body is typically a circle. The trick here is the . Remember that in CodeHS, circles are often drawn from their center. If the ghost needs to be in the middle of the screen, you’ll need to move(getWidth() / 2, getHeight() / 2) . 3. Creating the Eyes 4.2.1 Ghost Codehs

// 4.2.1 Ghost - Standard Solution for (var i = 1; i <= 10; i++) { if (i % 2 === 0) { console.log("GHOST"); } else { console.log("ghost"); } } Here is a breakdown of the code structure

for (var i = 1; i <= 10; i++) { if (i % 2 === 0) { console.log("GHOST"); } else { console.log("ghost"); } } you’ll need to move(getWidth() / 2