Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Chapter 3 question no. 6 of JavaScript is not getting solved even I am correct.

I have used this solution and it is matching with the answer but after submitting it says use not operator with and operator correctly in 1st log.
console.log(!x==y && y<x);
console.log(!y<x || y>x);
by

1 Answer

kshitijrana14
Try this one:

let x = true;
let y = false;

// apply AND operator
console.log(x && !y);

// apply OR operator
console.log(!x || y);

Login / Signup to Answer the Question.