I have two arrays like below,
var arr1 = [false, true, false];
var arr2 = [And, Or, null];
Now i make this two array with operator exchange.
And replace with && Or replace with ||
Is this possible to acheive?
Now I expected result is
var result = false && true || false;
if(result){
// when result true,
}
else{
// when result false
}
Please suggest your answer!!!