is there some kind of statement in javascript that illustrates the same logic as shown here?

else if(result=='ad'){correct='option1' || correct='option2'}

it's for a quiz i'm doing and want to user to be able to type in either option1 or option2 and still be correct in the case shown