Skip to content
Advertisement

function prevents rest of code from working

JavaScript

the function yellowFilter prevents anything else to run

JavaScript

is there anything wrong with these functions the update screen function doesn’t run if the yellowFilter runs but yellowFilter needs to run so that upDateScreen can run properly

Advertisement

Answer

Without actually going through anything I see one error immediately: for (var i = 0; color.length; i++)

The second statement in a for loop needs to be a conditional

Advertisement