Mastering JavaScript: Key Differences Between the ?? (Nullish Coalescing) and || (Logical OR) Operators
The example in the screenshot shows a double usage of the ||-operator: "... || 100 || 200", which makes no sense: the last part "|| 200" is superfluous in both lines as it will never be executed.
The example in the screenshot shows a double usage of the ||-operator: "... || 100 || 200", which makes no sense: the last part "|| 200" is superfluous in both lines as it will never be executed.