Loop through a node list
I forget this every single time!
const bookmarksList = document.querySelectorAll('#bookmarks .bookmark');
[...bookmarksList].map((bookmarksList,i) => {
console.log(bookmarksList);
});
const results = [];
[...document.querySelectorAll('article img')].map((img, i) => {
results.push(img.getAttribute('srcset'));
})
8d43703a-8d82-46bd-8fa6-9cc004f56c0a
Created on: 12th October, 2022
Last updated: 12th October, 2022
Tagged With: