Solution Link
Line affected: const expression = Math.random() >= 0.5 ? true : false
The comparison operator already returns a boolean.
MDN Web Docs - Comparison Operators
Solution Link
Line affected: const expression = Math.random() >= 0.5 ? true : false
The comparison operator already returns a boolean.
MDN Web Docs - Comparison Operators
If you are saying that you would like us to remove the unneeded ternary from that part of the linked solution, then I have made the change.
Yes, that’s what I meant.