repl.it
@DarshManocha/

How to work with the &&\"AND"

Nodejs

Lines of code using &&.

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
var dressed = false;
var hasBackpack = false;
dressed&&hasBackpack;
var hasApple = true;
var hasOrange = true;
var hasFruit = hasApple|| hasOrange;
hasFruit;
var isweekend = true;!isweekday;
var isweekday = true;!isweekend;