How to hide all elements specified in JS?
js
const hide = (...list) =>
[...list].forEach((el) => (el.style.display = "none"));
hide(document.querySelectorAll("img"));
const hide = (...list) =>
[...list].forEach((el) => (el.style.display = "none"));
hide(document.querySelectorAll("img"));