Why doesn't my code match?

I’m stuck :frowning:

Your code is not wrong, just might not match the expected pattern. Try removing the space character after log.

Nothing changed :woman_shrugging:t2:

image

This is the solution. But I don’t understand why we need sale = false; here

1 Like

And it was the next task actually.

You need to put sale = false in there in the 3rd task because they’re just showing you that it will run but will only print if sale = true