
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Explain about logical not(!) operator in detail with example in javascript?
NOT operator
The logical NOT operator gives true for false values and false for true values.
Example
<html> <body> <p id="logical"></p> <script> var x = 200; var y = 300; document.getElementById("logical").innerHTML = !(x < y) + "<br>" + !(x > y); </script> </body> </html>
Output
false true
- Related Articles
- Explain about add and assignment(+=) operator in detail in javascript?
- Explain in detail about memory leaks in JavaScript?
- What is Logical NOT Operator (!) in JavaScript?
- Explain in detail about Reference-counting garbage collection in JavaScript?
- Explain in detail about Mark and Sweep algorithm in JavaScript?
- Explain in detail about the memory life cycle of JavaScript?
- Is there a & logical operator in JavaScript?
- What is Logical OR Operator (||) in JavaScript?
- What is Logical AND Operator (&&) in JavaScript?
- Explain about 2NF with an example in DBMS
- UPDATE with logical AND operator in MySQL
- Explain about single step income statement in accounting with example.
- Explain about EventHandler with Examples in JavaScript
- Explain the concept of logical and assignment operator in C language
- Explain about prism with example and minimum deviation

Advertisements