I have question because I am not sure and cannot find answer on Stack Overflow about this.
What this exactly mean:
variable = variable || {}
or something that:
this.pointX = options.pointX || 6;
I understand that it assign to variable
a variable
if it exist or empty Object
if variable doesn't exist but why it working that?
Is ||
not mean 'or' here?