let = vkLink = document.querySelectorAll(".vk");
let = instLink = document.querySelectorAll(".inst");
let = fbLink = document.querySelectorAll(".fb");
let socArr = [vkLink, instLink, fbLink];
let socLinks = ["https://vk.com/hello", "https://www.instagram.com/hello", "https://www.facebook.com/hello"]
for(let i = 0; i < socArr.length; ++i) {
for(let k = 0; k < socArr[i].length; ++k) {
socArr[i].addEventListener("click", () => {
window.open = socLinks[i];
})
}
}
socArr[i].addEventListener is not a function
let socArr = [...vkLink, ...instLink, ...fbLink];
socArr.forEach(elem => {
elem.addEventListener....
})
document.querySelectorAll(".inst , .vk , .fb").forEach(elem => {
elem.addEventListener....
})