📰 Weekly Makecode Exam #2!

Here it is you guys!


Still scraping by!


What in the world is a ‘local group’


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

1 Like



I failed…


60%… I barely passed…

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

Hehehe… yep, it’s you lol.


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 :sweat_smile: 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!


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.


1 Like

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 :smiley:

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

1 Like