# Does Makecode Support Yield

**URL:** https://forum.makecode.com/t/does-makecode-support-yield/45015
**Category:** Help
**Created:** [July 21, 2026, 9:19pm UTC](https://forum.makecode.com/t/does-makecode-support-yield/45015 "2026-07-21T21:19:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![CodaKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codaknight/32/33491_2.png) [@CodaKnight](https://forum.makecode.com/u/CodaKnight)
#### Post date: [July 21, 2026, 9:19pm UTC](https://forum.makecode.com/t/does-makecode-support-yield/45015/1 "2026-07-21T21:19:39Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [July 22, 2026, 2:31am UTC](https://forum.makecode.com/t/does-makecode-support-yield/45015/2 "2026-07-22T02:31:08Z")

</div>

Short answer: No.

> **[MakeCode Languages: Blocks, Static TypeScript and Static Python](https://makecode.com/language)**
>
> MakeCode programs can be authored in Blocks, Static TypeScript or Static Python.

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [July 22, 2026, 4:23pm UTC](https://forum.makecode.com/t/does-makecode-support-yield/45015/3 "2026-07-22T16:23:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [July 22, 2026, 10:11pm UTC](https://forum.makecode.com/t/does-makecode-support-yield/45015/4 "2026-07-22T22:11:26Z")

</div>

Man the amount of jokes I can’t understand

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [July 23, 2026, 2:07am UTC](https://forum.makecode.com/t/does-makecode-support-yield/45015/5 "2026-07-23T02:07:41Z")

</div>

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

```typescript
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).
