function getFieldValue(){ let fieldValue = document.querySelector("input").value; return fieldValue; } console.log(fieldValue);
let input = document.getElementById("myInput") let value = input.value