Nice to meet you. I’m French, and I don’t speak english fluently. Sorry for my bad language, so.
I wonder if an exercice is true, because and I’m not agree with the proposition. It’s not very important for the JS language, but a little bit important for the logic.
The exercice want us to calculate our age if we were a dog. But, the solution given don’t seem to be true. The solution given is how to calculate our human age if we were a dog.
I find this solution wich seem to be good to the exercice :
const myAge = 37;
let earlyYears = 2;
earlyYears *= 10.5;
let laterYears = myAge - earlyYears;
laterYears /= 4
const myDogAge = (myAge - earlyYears)/4 + 2;
Like this, we can calculate our dog’s age from our human’s age.
I don’t know if I was clear, sorry, my vocabulary is limited…
Thanks for your answer,