[Solved] Why I Can’t Get A Return Value To BAC?


Your output should be the other way around:

//output
document.getElementById('BAC').value = BAC;

Also, all the multiplications you’re trying to perform inside document.getElementById should go outside. For example:

var beer = document.getElementById("beer").value  * .54;

solved Why I Can’t Get A Return Value To BAC?