# 50 variables suddenly appeared in my project

**URL:** https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725
**Category:** Help
**Created:** [March 17, 2026, 4:51pm UTC](https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725 "2026-03-17T16:51:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![SouperMediocre1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soupermediocre1/32/22579_2.png) [@SouperMediocre1](https://forum.makecode.com/u/SouperMediocre1)
#### Post date: [March 17, 2026, 4:51pm UTC](https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725/1 "2026-03-17T16:51:32Z")

</div>

I kept my makecode arcade tab open on my project over the weekend, with the laptop off the entire time, and when I opened up the tab today I looked at my project and my index and value variables have duplicated like 50 times and I have a variable for every value between index1 and index30, same thing for value. not a huge problem to fix but it is a bit of a time waster to delete all of these.

I’m mostly just wondering how this even happens tbh.

Photos:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/6/26b9f51b63c68656c3f94310e59a4872ecef4c4e.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/a/7a8c054b34b400e9e5b72a0769ce4218239e35ce.png)

---

<div class="post-metadata">

### Author: ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)
#### Post date: [March 17, 2026, 9:15pm UTC](https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725/2 "2026-03-17T21:15:23Z")

</div>

I think - and this might just be me hallucinating - that this happened to me once when i switched a project with lots of “for element value of list” blocks into javascript and back into blocks.

My educated guess is that it made a unique variable for every instance of “value” in the code because compiler shenanegans

---

<div class="post-metadata">

### Author: ![SouperMediocre1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soupermediocre1/32/22579_2.png) [@SouperMediocre1](https://forum.makecode.com/u/SouperMediocre1)
#### Post date: [March 17, 2026, 9:15pm UTC](https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725/3 "2026-03-17T21:15:30Z")

</div>

nevermind as to how this happens - apparently its from switching from blocks to javascript.

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [March 18, 2026, 4:05pm UTC](https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725/4 "2026-03-18T16:05:30Z")

</div>

Yeah it happens sometimes.  
It also happens with various other blocks, if you don’t want the great summoning to occur, stick to one language.

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [March 18, 2026, 5:17pm UTC](https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725/5 "2026-03-18T17:17:41Z")

</div>

Crazy bug, but for some reason I find it kind of funny.

---

<div class="post-metadata">

### Author: ![SouperMediocre1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soupermediocre1/32/22579_2.png) [@SouperMediocre1](https://forum.makecode.com/u/SouperMediocre1)
#### Post date: [March 18, 2026, 5:53pm UTC](https://forum.makecode.com/t/50-variables-suddenly-appeared-in-my-project/42725/6 "2026-03-18T17:53:47Z")

</div>

yeah pretty much what happened
