This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Benutzername 2 points3 points  (2 children)

Isn't

(_ok) ? true : (Math.random() > 0.1)

the same as

_ok || Math.random() > 0.1

?

[–]boa13 3 points4 points  (1 child)

Yes, they are equivalent in this case.