# CSD 3.27 Why is the score not showing? Help!

**URL:** <https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034>\
**Category:** CS Discoveries\
**Tags:** csd-unit-3\
**Created:** [March 17, 2022, 1:26pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034 "2022-03-17T13:26:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [March 17, 2022, 1:26pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/1 "2022-03-17T13:26:22Z")

</div>

> **[Check out what I made](https://studio.code.org/projects/gamelab/4LiVjJ1NtxJiZ4gZzoWVLEx15FnYyrddJ0xPFxFPAHQ)**
>
> I wrote the code myself with Code.org

---

<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:** [March 17, 2022, 1:58pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/2 "2022-03-17T13:58:48Z")

</div>

@langilla1,

The link isn’t working. It says this project isn’t available for sharing. I’m not sure if the link is incorrect or it is correct, but sharing was removed from the account? Can you see if it is the right link or make sure you’ve shared using the “share” button and we’d be happy to look at it.

Mike

---

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [March 17, 2022, 2:34pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/3 "2022-03-17T14:34:47Z")

</div>

[https://studio.code.org/projects/gamelab/4LiVjJ1NtxJiZ4gZzoWVLEx15FnYyrddJ0xPFxFPAHQ](https://studio.code.org/projects/gamelab/4LiVjJ1NtxJiZ4gZzoWVLEx15FnYyrddJ0xPFxFPAHQ)

---

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [March 17, 2022, 2:36pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/4 "2022-03-17T14:36:08Z")

</div>

> **[Check out what I made](https://studio.code.org/projects/gamelab/4LiVjJ1NtxJiZ4gZzoWVLEx15FnYyrddJ0xPFxFPAHQ)**
>
> I wrote the code myself with Code.org

---

<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:** [March 17, 2022, 2:38pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/5 "2022-03-17T14:38:12Z")

</div>

@langilla1,

In line 22, you are calling the function Score (capital S), but the function is called “score” (lower-case ‘s’). javascript sees those as different names. Use either lower or upper case, but make sure it matches and your program should work!

Good luck!

Mike

---

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [March 17, 2022, 3:03pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/6 "2022-03-17T15:03:50Z")

</div>

I tried that and what happens is I get this error at line 22 :"

ERROR: Line: 22: TypeError: score is not a function

---

<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:** [March 17, 2022, 3:40pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/7 "2022-03-17T15:40:40Z")

</div>

@langilla That’s what I saw when line 22 was **S** core and line 32 was **s** core. If you make them both exactly the same (score, score **or** Score, Score), it should work. It did for me, but if you try it and it still isn’t working, let me know and I will investigate further.

thanks!

Mike

---

<div class="post-metadata">

**Author:** ![langilla1](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@langilla1](https://forum.code.org/u/langilla1)\
**Post date:** [March 17, 2022, 4:09pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/8 "2022-03-17T16:09:49Z")

</div>

I tried that again and I get the same error when I get to line 22 that tells me that score is not a function.

[https://studio.code.org/projects/gamelab/9UVXzvA8cy2fII9XM1Y\_hfrAN18wRDdINqhqkxNCs9w](https://studio.code.org/projects/gamelab/9UVXzvA8cy2fII9XM1Y_hfrAN18wRDdINqhqkxNCs9w)

 ![image.png](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/2/2bdbf26469f8af971d6f844f471ef12f6e4a2762.png)

---

<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:** [March 17, 2022, 4:26pm UTC](https://forum.code.org/t/csd-3-27-why-is-the-score-not-showing-help/36034/9 "2022-03-17T16:26:50Z")

</div>

Ok… @langilla1,

There is also something else going on here … you have both score and Score in your program already.

score, you declared to be a variable to track the score.

Then, you made the function Score (to figure out when to add a point).

The key is to look at every time you use the word score and see if it is referring to the points (score) or the function to track the points (Score).

Here’s a link that works when I looked at every use of the word and made sure they were all referring to the correct object. [Game Lab - Code.org](https://studio.code.org/projects/gamelab/4CywXoaiYLf9y_2akDyQOwSpjMZ2wanPoXPZY6vn9D8)

To avoid confusion, you could rename one of them, so you use points instead of score or rename the function to something like “updateScore” instead of Score.

Good luck!

Mike
