Help on 2 through the hard times


// Voici un tableau de multiples de 8. Est-il correct ?
var multiplesDeHuit = [8,16,24,32,40,58];

// On test pour avoir si le nombre dans le tableau est un multiple de huit.
// Si c'est un multiple, cela retourne false
var reponse = multiplesDeHuit[5] % 8 !== 0;


We are only asked to replace the X with an index number for the number in the array that is not divisible by 8. We can see that at index[5], 58 is not divisible so will yield true as an answer to the conditional expression.

Your answer is correct. Are you having trouble passing?