Skip to content

homework-2#1

Open
SatanD01 wants to merge 1 commit intomainfrom
homework-2
Open

homework-2#1
SatanD01 wants to merge 1 commit intomainfrom
homework-2

Conversation

@SatanD01
Copy link
Owner

@SatanD01 SatanD01 commented Jun 3, 2021

ДЗ сделал, вопросов в принципе нету. Только 1 вопрос, что за задача со звездочкой ? )

@SatanD01 SatanD01 requested a review from ZarMarathon June 3, 2021 12:33
@SatanD01 SatanD01 self-assigned this Jun 3, 2021
Copy link
Collaborator

@ZarMarathon ZarMarathon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В целом хорошо, комментарии оставил в коде) ты молодец)
Как тебе уроки? все посмотрел? что-то новое нашел?

Let’s keep in touch

const player1 = {
name: 'Silver',
hp: 100,
img: 'img' ,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему бы в img сразу не передать src картинки?

$img.src = 'http://reactmarathon-api.herokuapp.com/assets/scorpion.gif';
$player1.appendChild($img); No newline at end of file
// appends
const $arenas = document.querySelector('.arenas');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше вынести на самый верх, вообще старайся объявлять переменные вначале документа/функции, что бы было более читаемо какие переменные будут использоваться дальше)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants