- script.js
JavaScript
80 * (400 / 100);
120 * (400 / 100);
Result
Goalscompleted
Improve the program for calculating the nutritional values of lunch and dinner.
- Add a
console.log('Calorific value of lunch');command before the80 * (400 / 100);command - then replace
80 * (400/100);command withconsole.log(80 * (400 / 100)). - Add a
console.log('Calorific value of dinner');command before120 * (400 / 100); - then replace
120 * (400 / 100);with aconsole.log(120 * (400 / 100));command.
Comments