№4 28.01.22

by helpD54

JavaScript

let massE = ["[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]"];
let massBan = ["[email protected]", "[email protected]", "[email protected]"];
let perm = function(mas1, mas2)
{
let mass1 = [];
let mass2= [];
let mass3 = [];
for (i=0;i<mas1.length;i++)
{
mass1.unshift(mas1[i]);
}
for (i=0;i<mas2.length;i++)
{
mass2.unshift(mas2[i]);
}
for(let i=0;i<mas1.length;i++){
if(mas1[i]!==mas2)
{
 mass3.unshift(mas1[i]);
 console.log(mass3);
}
}
}

for(let i = 0;i<massE.length;i++)
{
let posle = perm(massE[i]);
}

for(let i = 0;i<massBan.length;i++)
{
let posle1 = perm(massBan[i]);
}