//for example this works fine
let x = document.getElementById("test-el")
x.innerText = "Example1234" //autocomplete recognizes x and autocompletes innerText
//But for this
function someX(testDiv){
this.testDiv = testDiv
}
let y = new someX(document.getElementById("test-el"))
y.testDiv.innerText //at this situation autocomplete not working,not recognizing that its html element
Is there any way to help this or better way to work with objects with dom element properties?