How to use neither nor in if with Node.js

1 Answer

0 votes
const x = 0;
const y = null;

if (!(x || y)) { 
  	console.log('neither x nor y');
} else {
  	console.log('else');
}

    
     
     
     
/*
run:
     
neither x nor y
     
*/

 



answered Jun 24, 2022 by avibootz

Related questions

1 answer 148 views
1 answer 130 views
1 answer 104 views
104 views asked Apr 11, 2022 by avibootz
...