const a=[10,30,43,64,34,64,5,45,98];
const b=[];
const c=[];
const str="";
let i;
for(i=0; i<a.length; i++)
{
if(a[i]%2==0)
{
b[i]=a[i];
}
else
if(a[i]%2==1)
{
c[i]=a[i];
}
}
Y29uc3QgYT1bMTAsMzAsNDMsNjQsMzQsNjQsNSw0NSw5OF07CmNvbnN0IGI9W107CmNvbnN0IGM9W107CmNvbnN0IHN0cj0iIjsKbGV0IGk7CmZvcihpPTA7IGk8YS5sZW5ndGg7IGkrKykKewppZihhW2ldJTI9PTApCnsKYltpXT1hW2ldOwpjb25zb2xlLmxvZygiQj0iK2JbaV0pOwp9CmVsc2UKaWYoYVtpXSUyPT0xKQp7CmNbaV09YVtpXTsKY29uc29sZS5sb2coY1tpXSk7Cn0KfQo=
const a=[10,30,43,64,34,64,5,45,98];
const b=[];
const c=[];
const str="";
let i;
for(i=0; i<a.length; i++)
{
if(a[i]%2==0)
{
b[i]=a[i];
console.log("B="+b[i]);
}
else
if(a[i]%2==1)
{
c[i]=a[i];
console.log(c[i]);
}
}