Advertisement
Spocoman

10. Clock - part 2

Dec 26th, 2021 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function clock2() {
  2.     for (let h = 0; h < 24; h++) {
  3.         for (let m = 0; m < 60; m++) {
  4.             for (let s = 0; s < 60; s++) {
  5.                 console.log(`${h} : ${m} : ${s}`)
  6.             }
  7.         }
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement