Nutritional Value Calculator

Nutrition Information:

Calories: ${nf_calories} kcal

Total Fat: ${nf_total_fat} g

Protein: ${nf_protein} g

Sugars: ${nf_sugars} g

Carbohydrates: ${nf_carbohydrates} g

`; resultsDiv.appendChild(foodDiv); } // Event listener for the "Get Nutritional Info" button document.getElementById('getNutritionalInfo').addEventListener('click', getNutritionalInfo);
Scroll to Top