- script.js
JavaScript
var initialWeight = 6000; // Initial weight in grams
var targetWeight = 5000; // Desired weight in grams
/* Technical assignment
Meow! I’m tired of diet and exercise, and that’s why I want to know how many more days I need to exercise to achieve the right weight for the event.
Input data: weight in the beginning and weight in the end.
Work logic: if I exercise and diet, I lose 5% of my weight per day (you can’t really gain any weight on dry food, and my exercise sessions are harsh).
Just count how many days you need to stick to this routine and write the number in the days variable.
*/