I cannot solve this error , it tells me that my buttons are undefined and cannot read their innerHtml attribute, the convert method is defined in the original code file and i have no problem with it,can you help me , the error comes from the code section below:
var btnsArr = document.getElementsByClassName("btn")
for (var i = 0; i < btnsArr.length; i++) {
btnsArr[i].addEventListener("click", function () {
Convert(btnsArr[i].innerHTML);
return false;
})
} ```