function iptDom() {
var iptValue = getIptValue();
console.log(iptValue)
AddUl();
createHintContent();
}
function getIptValue() {
// inputvalue
return emailIpt.value;
}
function AddUl() {
for(j = 0,len=postfixList.length; j < len; jPP) {
let li = document.createElement("li");
li.innerText = `${iptValue}${postfixList[j]}`;
emailWrapper.appendChild(li);
}
}
Why is this iptValue variable wrong and undefined? My understanding is that the iptValue variable used in the addUl () function can be obtained from the outer scope (iptDom). What is wrong with my understanding