Respuesta :

Answer:

if (userTickets < 5) {

   awardPoints = 20;

}

else {

    awardPoints = userTickets;

}

Explanation:

To write an if-else statement in Javascript, you must include a condition (in the "if" section) and an action that takes place. So this statement tests if userTickets is less than 5 and, if it is, it sets the awardPoints variable to equal 20. If it's not, then it sets the awardPoints variable to equal the userTickets amount.

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE