diff --git a/index.html b/index.html index 191d3cc..655a3d4 100644 --- a/index.html +++ b/index.html @@ -8,7 +8,12 @@
+
+ - + diff --git a/index.js b/index.js index 877a3aa..db17e2d 100644 --- a/index.js +++ b/index.js @@ -1 +1,7 @@ // Your code here +$(document).ready(function () { + window.setInterval(myCallback, 1000); + function myCallback() { + $('#clock').html(new Date(Date.now()).toLocaleTimeString('en-US')); + } +});