This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sleepFor(duration) { | |
return new Promise(resolve => setTimeout(() => resolve(), duration)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
const formatNumber = num => num.toString().padStart(2, '0'); | |
const now = new Date(); | |
const hours = formatNumber(now.getHours()); | |
const minutes = formatNumber(now.getMinutes()); | |
const seconds = formatNumber(now.getSeconds()); | |
const time = `${hours}:${minutes}:${seconds}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"Alstein", | |
"Håstein", | |
"Store Såstein", | |
"Havsteinen", | |
"Feistein", | |
"Tvistein", | |
"Leistein", | |
"Hakkstein", | |
"Tristein", |