Compare 2 arrays

Compare 2 arrays
0.0 0

#1

I want to compare 2 arrays, but
if (as[i]=== ao[i]) it’s always true ?

  let clickshape = () => {
    let clickcount = 0, numclick = 0 , num, sound
    $('.shape__color').on('click', function (e) {
      numclick = parseint(this.textcontent.trim(),10)//hold the number clicked
      num = randadditem(numclick)//push the click in ao (array oppoment)
      clickcount++ //count the click number
      sound = datagame[parseint(this.textcontent.trim(),10)].sound//sound
      if (as.length === 1 && clickcount === 1) {
        _playsound(sound)
        this.classlist.add('activeclick')
        settimeout(function () {
          removeactiveclass()
          //console.log('ai click 1');
          return _ai()
        }, 800);//1s
      } else if(as.length > 1){ 
        //console.log('click ' + as, ao);
        loop: for (let i = 0, l = as.length; i < l; i++) {
          console.log(as, ao);
          console.log(as[i], ao[i]);
          if (as[i]=== ao[i])  {
            console.log(1);
            _playsound(sound)
            this.classlist.add('activeclick')
            settimeout(function () {
              removeactiveclass()
            }, 800);//1s
            //console.log('1 valeur dans ao');
            if(as.length === ao.length){//same size the result is complete
              settimeout(function () {
                //console.log('click same size' + as, ao);
                removeactiveclass()
                return _ai()
              }, 800);//1s
              break loop;
            }
            //continue loop
            break loop
          } else if(as[i] !== ao[i]){
            console.log('nope the same');
          } else{
            console.log('error');
            //return error()
            //return _ai()
          } 
        }
        e.preventdefault();
      }
    });
  }

#2