Skip to content

Instantly share code, notes, and snippets.

View SamuelAlev's full-sized avatar

Samuel Alev SamuelAlev

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
export default class Clock {
constructor(private hours: number, private minutes: number = 0) {
this.setTime();
}
setTime() {
if (this.minutes > 59) {
while (this.minutes > 59) {
this.hours++;