JSFiddle - React, Tailwind, and code Playground JavaScript var myArray = ['yellow', 'orange', 'red'] ; alert(!!~myArray.indexOf('red'));