how does ternary operator works 3f

Solutions on MaxInterview for how does ternary operator works 3f by the best coders in the world

showing results for - "how does ternary operator works 3f"
Henri
25 Feb 2019
1let moneyAmount = 80;
2let creditCardAmont = 70;
3
4let drink = (moneyAmount > 60 && creditCardAmont > 50) ? 'buy coke' : 'filter water';
5console.log(drink)