correction console
This commit is contained in:
parent
7e7d8d6504
commit
8ab9a4f64a
1 changed files with 5 additions and 5 deletions
10
js/main.js
10
js/main.js
|
@ -9,27 +9,27 @@ const main = () => {
|
|||
};
|
||||
|
||||
let exemple = "a && b || c"
|
||||
console.error(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log("vrai rep d'apres JS:", def.a && def.b || def.c);
|
||||
|
||||
console.log("\n\n-----\n\n ");
|
||||
exemple = "!a && b || c && a || c && b && a"
|
||||
console.error(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log("vrai rep d'apres JS:", !def.a && def.b || def.c && def.a || def.c && def.b && def.a);
|
||||
|
||||
console.log("\n\n-----\n\n ");
|
||||
exemple = "a || b || a && b && c || c"
|
||||
console.error(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log("vrai rep d'apres JS:", def.a || def.b || def.a && def.b && def.c || def.c);
|
||||
|
||||
console.log("\n\n-----\n\n ");
|
||||
exemple = "a || a && !a && !b || !a"
|
||||
console.error(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log("vrai rep d'apres JS:", def.a || def.a && !def.a && !def.b || !def.a);
|
||||
|
||||
console.log("\n\n-----\n\n ");
|
||||
exemple = "(a || b) || (a && b) && c"
|
||||
console.error(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log(exemple, "\n=", parseLogicalExpression(def, exemple));
|
||||
console.log("vrai rep d'apres JS:", def.a || def.b || def.a && def.b && def.c || def.c);
|
||||
|
||||
};
|
||||
|
|
Reference in a new issue