function getFieldValue(){ let fieldValue = document.querySelector("input").value; return fieldValue; } console.log(fieldValue);
const inputValue1 = document.getElementById('input-field-id').value;