Possible Duplicates:
What does "options = options || {}" mean in Javascript?
null coalescing operator for javascript?
Was reading some code and I saw this:
this.x1 = options.x1 || 0;
Never seen syntax like this before. What does it mean?
Possible Duplicates:
What does "options = options || {}" mean in Javascript?
null coalescing operator for javascript?
Was reading some code and I saw this:
this.x1 = options.x1 || 0;
Never seen syntax like this before. What does it mean?