Skip to content

Zadania wykonane#156

Open
Krystian-Bak wants to merge 1 commit intodevmentor-pl:masterfrom
Krystian-Bak:master
Open

Zadania wykonane#156
Krystian-Bak wants to merge 1 commit intodevmentor-pl:masterfrom
Krystian-Bak:master

Conversation

@Krystian-Bak
Copy link
Copy Markdown

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

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

Krystianie,

Całość wygląda bardzo dobrze! 👍
Zostawiłem dwa drobne komentarze :)

console.log(`Wszystkich elementów posiadających atrybut "data-info" oraz dwie klasy (comments__item, comments__item--newest) jest ${elementNewest.length}.`); // lenght - ilość elementów w tablicy zwrucona wartość to obiekt typu NodeList str. 22
} else{
console.log('Elementów które posiadają atrybut "data-info" NIE ZNALEZIONO');
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

console.warn(`Niepoprawne linkowanie: ${href}`);
link.textContent += ' X';
}
}); No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

Comment on lines +32 to +37
Które rozwiązanie stostuje się generująć wartości z tablic / obiektów?

for (const [styleName, value] of Object.entries(buttonSettings.css)) {
button.style[styleName] = value;
}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Wszystko zależy od kontekstu, można też korzystać z for .. in

];


menuItems.forEach(menuValue =>{ // uzycie "item" moze byc wykorzystywane przez innych programistów wiec tutaj będę zmienał zawsze na własną
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Pamiętaj, że to zmienna lokalna, więc może przesłonić znienną o tej nazwie, a potem ją "odsłonić", więc nie musi to być duży problem.


const newArticle = nextArticle.cloneNode(true);

container.insertBefore(newArticle, container.firstElementChild);
Copy link
Copy Markdown
Owner

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