What is an Exclamation Operator in JavaScript



The exclamation operator is to perform negation on an expression.

Example

You can try to run the following code to learn how to implement exclamation(!) operator in JavaScript −

Live Demo

   
      JavaScript Boolean
   

   
      
   
Updated on: 2020-06-15T07:12:10+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements