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 235 views
1 answer 212 views
1 answer 187 views
187 views asked Apr 11, 2022 by avibootz
...