Reading this question I found a reference to the call Elvis operator (link in English) or ?:
that is very similar to the operator ||
used in javascript or also called operator of null coalescence (link in English).
Investigating more about both I could not distinguish any difference between them which led me to wonder, Is there really any difference? If there is not, then why are there two references to something that semantically means the same thing?
Examples of the elvis operator
var variable = foo ?: bar
Returns foo
if foo
exists and is not null but returns bar
Null coalescent operator
var variable = foo || bar
that does exactly the same thing
Note: The elvis operator is not part of the javascript language, instead the ternary operator .