Spacing is funny that way here. Let me try it. Try this one:
function ix129(arrx){
for (let i=0;i<arrx.length; i++){
let a = arrx[i];
for (let j=i+1; j<arrx.length;j++){
let b = arrx[j];
if(a==b) {document.write("False"); return;}
}
}
document.write("True");
}
1
u/NoAd7524 Jul 02 '21
Ah wait, missed that part but the logic is bad anyway. It helps if you paste the code in text form. Could you please do this?