@richard when did we get the ability to use multiple things for arrays I cannot express my gratitude for this. Cheers makecode team
Wait we did!?
What exactly do you mean? Like put multiple types of items in an array? I thought you could always do that.
I thought I caused an error I was dang sure of that when I did nested arrays with different stuff
The thing is that you can’t actually use these arrays. For example, if you created an array of a number and some text, it would be of type “string | number” which you can’t really do anything with (in blocks). Unless you are type checking it, which doesn’t exist in blocks, it will cause an error… wait… ok new pxt-JavaScript-extras update, I’ve added the “typeof” block. You can now do type checking in blocks, have fun.
Nope. No fun to be had here. The compiler still complains if you use the block I made, sorry. You would have to go into JavaScript, type “typeof”, and then switch back to make the compiler happy. Very sad.
I used number and sprite in a dialog box and it displayed both
Yes that makes sense as the dialogue box accepts any input. I thought you were talking about arrays?