✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Given the following code, what is the value of currentValue when frameCounter is equal to 10? Hint: The % operator, called the modulo operator, returns the remainder of the division of two numbers.
let frameCounter = 0;let currentValue;
function draw() { background(255, 255, 255); frameCounter = frameCounter + 1; if (frameCounter % 6 < 3) { currentValue = 150; } else { currentValue = 250; }}