Eloquent JavaScript - Values Variables Control Flow
The && operator
JavaScript
// set true or false, when true alert will be shown, when false nothing will happen
false && alert("Hello!");
// set true or false, when true alert will be shown, when false nothing will happen
false && alert("Hello!");