Code to go logo
Created using Figma
Use Cases
Contribute
How to create logical NOT condition in JavaScript
Syntax
By Jad Joubran ·
Last updated Jan 02, 2018
const isOverage = false; if (!isOverage) { console.log("You are underage"); }
You are underage
Jan 02, 2018
1
Jad Joubran
See answer
1
Jad Joubran
Logical operators
on MDN
Learn JavaScript step by step