#19. Changing x
When the green flag is clicked, this script runs. What is the cat's **x** position?
when green flag clicked set x to (19) change x by (-35) change x by (42)
# The sprite's (cat's) position, direction and size x_pos = 0 # When the green flag is clicked x_pos = 19 x_pos -= 35 x_pos += 42
// The sprite's (cat's) position, direction and size let x_pos = 0; // When the green flag is clicked x_pos = 19; x_pos -= 35; x_pos += 42;
💡 Not sure? Build it in Scratch and try it out.