Student has this code
var secret = 1;
onEvent(“login_btn”, “click”, function() {
getText(“password_input”)=secret;
if (secret==123) {
showElement(“unlock_img”);
hideElement(“lock_img”);
console.log(“unlocked”);
}
if (secret!=123) {
showElement(“lock_img”);
console.log(“loggin failed”);
}
});
and is getting this error on line 3
ERROR: Line: 3: SyntaxError: Assigning to rvalue (3:0)