Last active
April 11, 2019 09:53
-
-
Save Cygra/5e04ae3f39b69277b68f061ef3a4604a to your computer and use it in GitHub Desktop.
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
"use strict"; | |
function Clock() { | |
var _this = this; | |
this.sec = 0; | |
setInterval(function () { | |
_this.sec++; | |
}, 1000); | |
} | |
var newClock = new Clock(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment