Omid's Blog

Javascript: the good parts

Here come my notes from Javascript: The good parts

The || operator can be used to fill in default values:

var middle = stooge[“middle-name”] || “(none)”;

var status = flight.status || “unknown”;

 

Until 42/172

Posted October 19, 2014

Omid Hezaveh lives and works in Helsinki find him on twitter