From 0824ab29c0e693e9dfca4e15df92cd94b06b3d29 Mon Sep 17 00:00:00 2001 From: Riaz Ahmed Date: Wed, 2 Sep 2015 21:53:44 -0400 Subject: [PATCH] Fixed --- index.html | 2 +- main.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 2b3858a..2a41a74 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,6 @@

One Up

This application should add one to the number every time the button is clicked.
- + diff --git a/main.js b/main.js index c59af61..f324004 100644 --- a/main.js +++ b/main.js @@ -1,10 +1,14 @@ $(function(){ +var num = 5; var oneUp = function(){ num++; + }; var printNum = function(){ - var num = 0; + $('#output').html(num); }; printNum(); -}); \ No newline at end of file + +}); +