ufdfdufdfd

// Get all elements with the .bg-red class
var elemsRed = document.querySelectorAll('.bg-red');

// Get all elements with the [data-snack] attribute
var elemsSnacks = document.querySelectorAll('[data-snack]');

https://vanillajstoolkit.com/reference/selectors/document-queryselectorall/

https://vanillajstoolkit.com/reference/selectors/document-queryselectorall/