Created
August 21, 2013 16:50
-
-
Save victorjspinto/6297006 to your computer and use it in GitHub Desktop.
From http://jsfiddle.net/
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(){ | |
$("#button1").click(onClickButton1); | |
$("#button2").click(onClickButton2); | |
var time | |
function onClickButton1(){ | |
time = Date.now() | |
console.log(time) | |
} | |
function onClickButton2(){ | |
console.log(time) | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment