Js array subscript check different execution, the same also executed?

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])
        }
    })
}
Jul.20,2021

does not execute
num.forEach () performs a different

by comparing it with all the values in num each time.
for(let i=0;i<header.length;iPP) {
        if(num.indexOf(i) === -1) {
            console.log(header[i])
        }
}

you mean this, don't you?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea027b-1ab3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea027b-1ab3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?