I really didn’t want to come to you guys for this one but I cannot wrap my head around this! How can return a true condition using object literals. My original code has multiple if/else statements I only made an example here to understand this better! I know there are other examples out there but it is not helping me!!!
///
if (cond1,cond2,cond3) {
//return ask question
}else if (cond1, cond2, cond3) {
//return if condition is false
}else if (cond1, cond2, cond3) {
//return if other conditions is false
}else if (cond1, cond2, cond3) {
//return if conditions are true
}else{
//return another
}
///
I want to know if this is on the right path!
obj1 {
cond1:"",
cond2:"",
cond3:""
}
obj2 {
cond1:"",
cond2:"",
cond3:""
}
return this || that || another