The result is correct, but why is this error Cannot read property 'indexOf' of undefined?

<!DOCTYPE  HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript">

 //, infos
 var infos = new Array(
     ["A","",21,""],
     ["B","",23,""],
     ["C","",24,""],
     ["D","",21,""],
     ["E","",22,""],
     ["F","",21,""],
     ["G","",22,""],
     ["H","",20,""],
     ["I","",20,""],
     ["J","",20,""]
 );
 //
for(var i = 0;i<=infos.length;iPP) {
  if(infos[i].indexOf("")>0){
    if(infos[i].indexOf("")>0){
      document.write([i]+":"+infos[i]+"<br/>");
    }
  }
}
   console.log(infos[0].indexOf(""));
 //

</script>
</head>
<body>
</body>
</html>
but this is why Uncaught TypeError: Cannot read property "indexOf" of undefined at 4-10.html:23
Apr.14,2022

i <= infos.length - 1

change I < = infos.length to I < infos.length

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-1eb0cad-480bb.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-1eb0cad-480bb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?