Does Makecode Support Yield

Hi guys! I was wondering if makecode supports yield. I did try it earlier but it just breaks. Is it possible to use it or is there a workaround for it? Just curious. Probably never going to use it in an actual game if it did work.

1 Like

Short answer: No.

3 Likes

when can you add eval? (joke since that allows all typescript)

Man the amount of jokes I can’t understand

something like eval("console.log(1)") will log 1 to the console,

eval("function (ectx) {
	...
	return ...
}")(evalIface)

Does some random stuff. Makecode runs your code by calling eval (the bigger code I showed is a part of it).