Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Awww damnit. I always overdo my code. One line!?
Unreadable. I wish code like this would not get upvoted so much. This is not best practice.
Thanks for clarifying that.
This comment is hidden because it contains spoiler information about the solution
Thanks for that Chrono79. I actually meant to use Math.floor, but had round in there instead. In my frustrated state I did not notice this. However that did not solve my issue.
I know what my problem is. I need to count until the population is ABOVE the goal, however I am not confident in which loop to use. I am using a while loop... but that will only count while my population is BELOW OR EQUAL to the target population.
I might have to use a do...while loop... I think. I will try and work on it again tonight.
I am using Math.round on my currentPopulation formula. And I am still getting "51 to equal 50" error. I have been at this all morning. Urghh.
I just can not, for the life of me, get past the "51 to equal 50" thing. I am rounding my currentPopulation down. Could it be because I am using a while loop? (Javascript) I tried a do...while loop and that does not work either. (I get the dreaded "4 to equal 3" error) Yes, I read the description. Over and over. I read all the comments. Something is just not clicking. I know I have to stop once the population is ABOVE the goal, but I don't know how to make that work.
What is TS?
Ninja code. Neat. But hard on the eyes.