if multiple conditions javascript code example
Example 1: multiple conditions for JavaScript .includes() method
const str = "hi, there"
const res = str.includes("hello") || str.includes("hi") || str.includes('howdy');
console.log(res); // true
Example 2: multiple conditions in javascript
let str = "fuck it I don't care";
let results = []
let results[0] = str.includes("hello") || str.includes("hi") || str.includes("howdy");
console.log(results[0]);