1
resposta

2 Projeto AluGames - Fase 5

if (imagem.classList.contains('dashboard__item__img--rented')) { imagem.classList.remove('dashboard__item__img--rented') botao.classList.add('dashboard__item__button--rented') botao.textContent = 'Alugar' } else { imagem.classList.add(''dashboard__item__img--rented') botao.textContent = 'Devolver' botao.classList.remove('dashboard__item__button--rented' }

Um otimo teste pra logica

1 resposta

Olá, Diego! Tudo joia?

Seu código está bem feito! Você seguiu todas as instruções do desafio corretamente e executou tudo com precisão.

Mantenha esse ótimo ritmo e, sempre que surgir uma dúvida, sinta-se à vontade para perguntar.

Bom aprendizado!