I'm trying to console.log a value taken from an input from session storage but it gives me " [object HTMLInputElement " but not the actual value of the input what can be done? Here's my code
let us = document.getElementById('us')
sessionStorage.setItem("user",us)
setTimeout(function() {
let h = sessionStorage.getItem("user")
console.log(h)
}, 200);