From ec84ca5c3334efe5fac0275b72c7cd2cebb88c65 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 31 Mar 2021 18:32:53 +0200 Subject: [PATCH] fix logs comparatif JS --- js/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index b2e9f98..95bb2b4 100644 --- a/js/main.js +++ b/js/main.js @@ -30,7 +30,12 @@ const main = () => { console.log("\n\n-----\n\n "); exemple = "(a || b) || (a && b) && c" 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("vrai rep d'apres JS:", (def.a || def.b) || (def.a && def.b) || def.c); + + /* console.log("\n\n-----\n\n "); + exemple = "(a || b) || (a || (a && b) && c) && c" + console.log(exemple, "\n=", parseLogicalExpression(def, exemple)); + console.log("vrai rep d'apres JS:", (def.a || def.b) || (def.a || (def.a && def.b) && def.c) && c); */ };