compare string by several strings js

JavaScript
if (fruit == 'banana' || fruit == 'lemon' || fruit == 'mango' || fruit == 'pineapple') {
    handleYellowFruit();
}

Source

Also in JavaScript: