The first example in Nullish Coalescing Operator the values should be switched around the ||s
You have 'value not falsey' || undefined which should actually be undefined || 'value not falsey', otherwise "value not falsey" will always show even for a truthy value.
('value not falsey' || true) === 'value not falsey'
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
The first example in Nullish Coalescing Operator the values should be switched around the
||
sYou have
'value not falsey' || undefined
which should actually beundefined || 'value not falsey'
, otherwise"value not falsey"
will always show even for a truthy value.('value not falsey' || true) === 'value not falsey'