I am trying to learn some javascript by working my way through some existing code and I came across this variable definition which I have not seen in the past. After searching I could not find an explanation so figured I would post here.
var colorCollection = colorCollection || {};
Could someone shed some light on what this type of definition means and why one might use this.