diff --git a/index.js b/index.js index 58ccb924..9022718e 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ function isNumber(num) { console.log("Number is false"); } else if (!!x) { console.log(`Number: ${x}`); - } else if (2 == x) { + } else if (x == 2) { } } @@ -63,7 +63,7 @@ let result = isFooAvailable({ function checkYoda() { let yoda = true; - if (true == yoda) { + if (yoda == true) { console.log("I am yoda"); } }