Why is it still executed?
is also executed if the value of the num array is the same as that of the header subscript.let num = [1,2] //
let header = ["en","xx","vv","ccc","ccx"]
for(let i=0;i<header.length;iPP) {
num.forEach((el) => {
if(i !== el) {
console.log(header[i])
}
})
}