if (res === 25 || res === "twenty-five" || res === 25.0) { // some action here } // Shorthand if ([25, "twenty-five", 25.0].includes(res)) { // some action here }
if (res === 25 || res === "twenty-five" || res === 25.0) { // some action here } // Shorthand if ([25, "twenty-five", 25.0].includes(res)) { // some action here }