Skip to content

Instantly share code, notes, and snippets.

@Przemocny
Last active December 11, 2022 08:17
Show Gist options
  • Save Przemocny/42914fab1f0edf9e3dcb3b5cfa845ccc to your computer and use it in GitHub Desktop.
Save Przemocny/42914fab1f0edf9e3dcb3b5cfa845ccc to your computer and use it in GitHub Desktop.
const HOW_MANY_YEARS = 5
const HOW_MANY_DAYS_IN_YEAR = 365
let yourSkills = 1
for(const day in [...new Array(HOW_MANY_YEARS * HOW_MANY_DAYS_IN_YEAR)]){
yourSkills = 1.01 * yourSkills
}
console.log(`yourSkills from 1 after ${HOW_MANY_YEARS} years in on ${yourSkills} lvl`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment