# Blocage: Identifying Rotten Strawberries

#1

<Bonjour à tous, après un stoppe sur les cours j’ai perdu complètement le fil dans cette leçon.

Pouvez-vous me donner la réponse pour que je puisse redémarrer !!

<Ne pas enlever les trois “backticks” ci-dessous>

``````
``````

<Ne pas enlever les trois “backticks” ci-dessus>

#2

Have you not covered `modulo` yet?

``````a % b
``````

will be zero if `a` is evenly divisible by `b`, otherwise it will be a number between 1 and b - 1, inclusive.

``````20 % 5 === 0
``````

There is no remainder.

``````//Here is an example of a strawberry index
var index = 20;

//Boolean value rotten
var rotten = false;

//If the index is divisible by five, the strawberry is rotten, so set
//rotten to true. False, otherwise

if (index % 5) {
rotten = false;
} else {
rotten = true;
}
console.log(index, rotten)
``````
``````20 true
``````

#3

Hi Roy!

Thank you for your precious help.

Yes I did not cover modulo then the reason for I block on this topic.

Thanks again,

Sateretas