✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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; }}