We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
We use them. While the ternary operator is nice and concise in this particular solution, it will not scale as soon as you add more data. Just imagine the code you'd have to write if it turned out that its 10 or 100 scores that you need to compare - instead of 3.
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
We use them. While the ternary operator is nice and concise in this particular solution, it will not scale as soon as you add more data. Just imagine the code you'd have to write if it turned out that its 10 or 100 scores that you need to compare - instead of 3.