Can anyone help me identify the issue in the code snippet below?
//this code shows an error
First.addEventListener("keyup", function(event) {
// Number 13 represents the "Enter" key on the keyboard
if (event.keyCode === 13) {
var input = document.getElementById("lastname")
//I am changing the class in the following function, hence reverting it for a specific reason
input.class === "margin5" ? input.class = "margin5 m-47" : console.log("false")
input.value = "any desired value"
changvaluE()
}
}