Need javascript equivalent for python's in

This is the third post I figured out as soon as I posted it. In case it helps, I won’t delete. For JS, you apparently have to write each condition in full. So, the code should be:

if (recall.text.includes(letter1) == true && recall.text.includes(letter2) == true && recall.text.includes(letter3) == true) {
    recallTotal=recallTotal+1;
    recallCorrect = 1;
}
else {
    recallCorrect = 0;
    runFOK=1;
}
1 Like