Open
Conversation
devmentor-pl
approved these changes
Jul 7, 2025
Owner
devmentor-pl
left a comment
There was a problem hiding this comment.
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'); | ||
| } |
| console.warn(`Niepoprawne linkowanie: ${href}`); | ||
| link.textContent += ' X'; | ||
| } | ||
| }); No newline at end of file |
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; | ||
| } | ||
|
|
Owner
There was a problem hiding this comment.
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ą |
Owner
There was a problem hiding this comment.
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@bogolubow