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 138 views
1 answer 123 views
1 answer 92 views
92 views asked Apr 11, 2022 by avibootz
...