People often write this to indicate default values:
var thing = this || that;
which is, AFAIK, the same as:
var thing = !!this ? this : that;
What do you call the method used to specify default values in the first block of code?
NOTE . I do not ask what is called logical OR. I ask how the alternative of triple notation is called (as written in the first block of code).
source
share