# Help with Unit 3 Lesson 13 Step 12

**URL:** <https://forum.code.org/t/help-with-unit-3-lesson-13-step-12/31679>\
**Category:** CS Discoveries\
**Created:** [November 10, 2019, 4:09pm UTC](https://forum.code.org/t/help-with-unit-3-lesson-13-step-12/31679 "2019-11-10T16:09:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tracy.d.grayson](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@tracy.d.grayson](https://forum.code.org/u/tracy.d.grayson)\
**Post date:** [November 10, 2019, 4:09pm UTC](https://forum.code.org/t/help-with-unit-3-lesson-13-step-12/31679/1 "2019-11-10T16:09:33Z")

</div>

I am following the code exactly as in the teacher solution, but mine is not working and I cannot figure out why…  
Here is the link to my work [https://studio.code.org/projects/gamelab/VnqhYXSNJIRlE7uYQFE2gCy5jtmjm1V1xo9hea3bKPM](https://studio.code.org/projects/gamelab/VnqhYXSNJIRlE7uYQFE2gCy5jtmjm1V1xo9hea3bKPM)

Here is a link to the teacher solution …

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [November 10, 2019, 11:21pm UTC](https://forum.code.org/t/help-with-unit-3-lesson-13-step-12/31679/2 "2019-11-10T23:21:00Z")

</div>

@tracy.d.grayson I think I found what is causing your program not to run. If you look at your line #6, you start it with “var”. You already “declared” the clicks variable in the first line of your code, so every time you refer to it after that, you don’t need to start with “var”. If you change that link to simply read clicks = clicks + 1; (without the var), it should work.

Also, I removed the link to the teacher solution in your message because students have been known to lurk in the forum looking for answer keys. Not sure they could access it without a teacher account, but just wanted to make sure!

Hope this works! Let us know.

Mike

---

<div class="post-metadata">

**Author:** ![tracy.d.grayson](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@tracy.d.grayson](https://forum.code.org/u/tracy.d.grayson)\
**Post date:** [November 11, 2019, 2:35pm UTC](https://forum.code.org/t/help-with-unit-3-lesson-13-step-12/31679/3 "2019-11-11T14:35:40Z")

</div>

Wow… didn’t see that… even though Josh warns against it in the var video! Thanks!

And yes…students search for answers on Google and YouTube…
