The collection of elements obtained by document.getElementsByClassName cannot get id?

< div class= "a" > das < / div >
< div class= "a" > fsdg < / div >

var del=document.getElementsByClassName ("a");

for(var i=0;i<del.length;iPP){
   console.log(del[i].id);
}

console.log (de [I] .id); Why can"t id? be printed

Mar.30,2021

your DOM does not have the id property set.

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