# 📰 Weekly Makecode Exam #2!

**URL:** <https://forum.makecode.com/t/weekly-makecode-exam-2/20916>\
**Category:** Show & Tell\
**Tags:** game\
**Created:** [June 27, 2023, 4:59pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916 "2023-06-27T16:59:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [June 27, 2023, 4:59pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/1 "2023-06-27T16:59:49Z")

</div>

Here it is you guys!

> **[MakeCode Exam Week #2](https://arcade.makecode.com/66692-89367-40769-23056)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/36648_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [June 27, 2023, 6:38pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/2 "2023-06-27T18:38:00Z")

</div>

Still scraping by!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/26114ca96834cea40051ed28867a6249d91541be.png)

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [June 27, 2023, 6:38pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/3 "2023-06-27T18:38:49Z")

</div>

What in the world is a ‘local group’

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [June 27, 2023, 7:45pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/4 "2023-06-27T19:45:31Z")

</div>

Looool sry! I mean the stuff you can add in functions!

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [June 27, 2023, 10:27pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/5 "2023-06-27T22:27:11Z")

</div>

…types?

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 27, 2023, 10:27pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/6 "2023-06-27T22:27:42Z")

</div>

I failed…

---

<div class="post-metadata">

**Author:** ![AbstractDesigner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abstractdesigner/32/22531_2.png) [@AbstractDesigner](https://forum.makecode.com/u/AbstractDesigner)\
**Post date:** [June 29, 2023, 4:39pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/7 "2023-06-29T16:39:49Z")

</div>

60%… I barely passed…

(Also, what’s the answer for the last question?..)

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [June 29, 2023, 10:25pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/8 "2023-06-29T22:25:38Z")

</div>

Hehehe… yep, it’s you lol.

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [June 29, 2023, 10:35pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/9 "2023-06-29T22:35:34Z")

</div>

If you meant types then your answer is wrong… Technically there are infinite types since you can write your own classes which can then be typed to the parameters in functions.

If you’re refering to default built-in typescript types then you have

- string
- number
- Array
- boolean
- any
- object
- function
- Enum

And with MakeCode on top you also have Image, TileMapData, Buffer and so on. Basically, it’s going to be a lot more than 6 types 😅 If you want to fix this, it’s up to you, I’d honestly change the whole question due to just how hard it is to _really_ answer (since there are practically infinite types), but you don’t have to, mistakes happen!

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [June 30, 2023, 4:39pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/10 "2023-06-30T16:39:42Z")

</div>

Woahhhhhhhh… ok, I had no idea lol! I just made a function, and there are six options so I put it as that. So there’s an infinite amount? Mr. @Sarge knows a lot about parameters in fonctions.

functions\*

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [June 30, 2023, 7:07pm UTC](https://forum.makecode.com/t/weekly-makecode-exam-2/20916/11 "2023-06-30T19:07:11Z")

</div>

I mean I said infinite since you can make infinite classes that can serve as types yourself, but even with the built-in types, you can make infinite types.

For example, you might have an array of numbers (`number[]`), but you can also have an array of number arrays (`number[][]`). You can stack this infinitely\* with any type, and since each of those is considered a type, you can say there are infinite types.

Now, obviously this is a really strange way of looking at this, and it makes sense why’d you get it wrong, it’s confusing! I’m glad you learned something new 😃

* * *

\* Technically not “infinite”, JS most likely has a limitation to this
