Closed christopherjohnson1 closed 4 years ago
//function that creates tickets id's (was not in card to create)
const ticketIdCreator = () => {
for (let i = 0; i < concerts.length; i++) {
concerts[i].Id = i.toString();
}
return concerts;
}
Had to create a function to give all the Buttons their own Id.
User Story
As a user, I should click a button to purchase tickets
AC
WHEN I navigate to the tour page THEN I should see the table with all concerts, dates, and venues AND the last column should should have a button in each row that displays
Tickets
AND when I click the button, a window alert will pop up and say "Congrats! Your tickets have been purchased!"Dev Notes
concertBuilder
functionpurchaseTickets
that willalert()
with a message that says "Congrats! Your tickets have been purchased!"