Skip to content

Instantly share code, notes, and snippets.

View UnicornEatingPopcorn's full-sized avatar
🦄

Anna Evlanova UnicornEatingPopcorn

🦄
  • Savings United GmbH
  • Seoul, South Korea
View GitHub Profile
const minute = 60
const hour = 3600
const day = 86400
const year = 31536000
function formatDuration(number) {
if(number < 0) {
return "function accepts only positive integers"
}