Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion 01/app.js
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
console.log('DOM');
console.log('DOM');
const comments = document.querySelector('.comments__item.comments__item--newest');

if (comments) {
const elementsWithDataInfo = comments.querySelectorAll('[data-info]');
console.log('The number of elements that have the attribute data-info:', elementsWithDataInfo.length);
}