For instance, in this function even if i already assigned the value of a. The program considers a as An individual letter and does not add the value assigned to it in the html program.
let obj={}
function reg() {
let a = document.getElementById('user').value
let b = document.getElementById('pass').value
obj.a=b
}
Output= a:the assigned value for b
Pls clarify my doubt.