I have been learning a lot and I understand some of the basics of javascript but debugging has been slow. Can I use the below script to get values then calculate a result?
function getTotal()
{
var adjustedProtein = proteinInput() + ServingsField();How can I display result into a label or input field?
//display the result? I know this is wrong
document.getElementById('AdjPrtCalc').innerHTML =
"Total Protein Grams $"+adjustedProtein;}