Eloquent JavaScript - Values Variables Control Flow

The && operator

by Denise Nepraunig

JavaScript

// set true or false, when true alert will be shown, when false nothing will happen 
false && alert("Hello!");