Khan Academy or Scratch Wikia
Advertisement

The JavaScript AND (&&) is a logical operator in JavaScript and Khan Academy's Processing JavaScript environment that returns a true value if and only if both values are true. An example is if(happy && satisfaction > 80){...}, where the programs checks if both conditions are true in order to return a true value. If just one or none of the conditions are true, the program returns a false value.

Advertisement