comment my solution please

lethtml='';letstudent;letrequest;letstudentNames=[];letnames=[];functionprint(message){letoutputDiv=document.getElementById('output');outputDiv.innerHTML=message;}for(leti=0;i<students.length;i++){student=students[i];studentNames.push(student.name);}functiongetReport(student){report='<h4>Student: '+student.name+'</h4>';report+='<p>Track: '+student.track+'</p>';report+='<p>achievements: '+student.achievements+'</p>';report+='<p>points: '+student.points+'</p>';returnreport;}for(leti=0;i<students.length;i++){student=students[i];names.push(student.name);}while(true){request=prompt("Type name or quit");if(request==null||request.toLowerCase()=='quit'){break;}elseif(names.indexOf(request)==-1){alert('there is no that student');}for(leti=0;i<students.length;i++){student=students[i];if(request==student.name){html+=getReport(student);print(html);}}}