Is there a way to remove firstChild of an element other than using table.innetHTML = " " when calling a function
I have a student arry const students = [] and i have addEventListener form.addEventListener("submit", function (event) { event.preventDefault(); const student = { name: this.name.value, }; students.push(student); this.reset(); renderStudents(); }); I have this render students function that i called in the…