using Not operator in javascript code example Example: not operator js let a = true; let b = !a; console.log(b); //output: false