Logical

  • Updated
Operator Compatible types Description
&& Boolean

Performs a logical ‘and’ operation and returns the result:

 

var y = true && false;
|| Boolean

Performs a logical ‘or’ operation and returns the result:

 

var y = false || true;
! Boolean

Performs a logical ‘not’ operation and returns the result:

 

var x = ! true;

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.