The codes given below are trying to add 'n' and the value 250 or 50 depending upon whether sales > 15000 is true or false: CODE 1: bonus = n + sales >15000 ? 250 : 50; CODE 2: bonus = n + (sales > 15000 ? 250 : 50); Which code is correct?
Reveal answer
Fill a bubble to check yourself