logging input value in a button javascript code example
Example: js console log input value
<input type="text" placeholder="name" id="uname" />
<input type="button"value="submit" onclick="send()" />
let uname = document.querySelector("#uname");
function send() {
console.log(uname.value);
}