# \#javascript

**URL:** https://forum.makecode.com/tag/javascript/7.md

[Latest](https://forum.makecode.com/latest.md) · [Categories](https://forum.makecode.com/categories.md) · [Tags](https://forum.makecode.com/tags.md)

---

## [🚀Extension Speedrun Begins!](https://forum.makecode.com/t/extension-speedrun-begins/45072)

<div class="topic-metadata">

**Author:** [@CodaKnight](https://forum.makecode.com/u/CodaKnight)\
**Replies:** 24\
**Last updated:** [September 21, 2026, 6:21am UTC](https://forum.makecode.com/t/extension-speedrun-begins/45072 "2026-09-21T06:21:00Z")

</div>

Well, this is it… I’ve decided to go on an extension speedrun. :grinning\_face\_with\_smiling\_eyes: Over the next few weeks (and probably months), I’m planning on releasing a bunch of MakeCode Arcade extensions I’ve been w…

---

## [Enumerations in blocks!](https://forum.makecode.com/t/enumerations-in-blocks/45095)

<div class="topic-metadata">

**Author:** [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Replies:** 10\
**Last updated:** [September 19, 2026, 9:26pm UTC](https://forum.makecode.com/t/enumerations-in-blocks/45095 "2026-09-19T21:26:24Z")

</div>

Have you every wanted enums in blocks? To be able to save the state of your player or game, but as a number? Introducing enum-blocks! blocks it adds: setEnumVar / setEnumVarStatement - sets/adds a key to an enum, wi…

---

## [Understanding JSDoc Annotations in MakeCode (Part 1)](https://forum.makecode.com/t/understanding-jsdoc-annotations-in-makecode-part-1/45411)

<div class="topic-metadata">

**Author:** [@CodaKnight](https://forum.makecode.com/u/CodaKnight)\
**Replies:** 5\
**Last updated:** [August 25, 2026, 11:48pm UTC](https://forum.makecode.com/t/understanding-jsdoc-annotations-in-makecode-part-1/45411 "2026-08-25T23:48:13Z")

</div>

WARNING: Lot’s of text in these 5 posts: MakeCode-Specific\* annotations will be in part 5 of this post. Please ask questions after reading both posts unless about a specific part of the posts. Hey guys! While working on…

---

## [What is this error?](https://forum.makecode.com/t/what-is-this-error/44678)

<div class="topic-metadata">

**Author:** [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Replies:** 2\
**Last updated:** [August 6, 2026, 4:25pm UTC](https://forum.makecode.com/t/what-is-this-error/44678 "2026-08-06T16:25:36Z")

</div>

I was trying to make a runtime error with the fewest characters, and img(0) confused me. It generates an error, but for whatever reason, the project still runs. The error is this: !!proc || !bin.finalPass and can be show…

---

## [Eval in makecode](https://forum.makecode.com/t/eval-in-makecode/45114)

<div class="topic-metadata">

**Author:** [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Replies:** 2\
**Last updated:** [July 29, 2026, 2:22am UTC](https://forum.makecode.com/t/eval-in-makecode/45114 "2026-07-29T02:22:54Z")

</div>

Something I have been trying to do recently was getting eval into makecode. This sounds hard or impossible to do if you are not familiar with shims, and sounds easy when you are. In Javascript, eval is a function that ex…

---

## [Custom Menu Showcase](https://forum.makecode.com/t/custom-menu-showcase/18381)

<div class="topic-metadata">

**Author:** [@meeeeeeeep1](https://forum.makecode.com/u/meeeeeeeep1)\
**Replies:** 18\
**Last updated:** [July 23, 2026, 5:12pm UTC](https://forum.makecode.com/t/custom-menu-showcase/18381 "2026-07-23T17:12:10Z")

</div>

Hello! I want to share with you something I found to make creating custom menus easier. This piece of code uses the menu button. scene.systemMenu.addEntry(() =\> string, () =\> handler, image) How to use: Replace strin…

---

## [Dungeon 3D](https://forum.makecode.com/t/dungeon-3d/44873)

<div class="topic-metadata">

**Author:** [@Abstract](https://forum.makecode.com/u/Abstract)\
**Replies:** 8\
**Last updated:** [July 16, 2026, 10:37pm UTC](https://forum.makecode.com/t/dungeon-3d/44873 "2026-07-16T22:37:45Z")

</div>

I noticed that lots of people are starting to get more into making 3D projects, so I thought I’d make this project to demonstrate my OpenPXT 3D extension, that allows you to build JavaScript 3D games with ease. In this …

---

## [Extensions by Chemthunder](https://forum.makecode.com/t/extensions-by-chemthunder/43583)

<div class="topic-metadata">

**Author:** [@Chemthunder](https://forum.makecode.com/u/Chemthunder)\
**Replies:** 9\
**Last updated:** [June 10, 2026, 5:38pm UTC](https://forum.makecode.com/t/extensions-by-chemthunder/43583 "2026-06-10T17:38:59Z")

</div>

Collection of extensions I’ve made (or am making) for Arcade. Currently working on a remake for my (in my opinion) best extension, Yggdrasil. Yggdrasil simply adds a feature I’ve been using for a while, the ability t…

---

## [How can I change the color of the device in makecode arcade](https://forum.makecode.com/t/how-can-i-change-the-color-of-the-device-in-makecode-arcade/43442)

<div class="topic-metadata">

**Author:** [@CodingGrizzlyBear](https://forum.makecode.com/u/CodingGrizzlyBear)\
**Replies:** 10\
**Last updated:** [April 21, 2026, 9:02pm UTC](https://forum.makecode.com/t/how-can-i-change-the-color-of-the-device-in-makecode-arcade/43442 "2026-04-21T21:02:07Z")

</div>

I’ve seen other people changing the color of the device, how do I do that?

---

## [Improved Improved Achievements Extension](https://forum.makecode.com/t/improved-improved-achievements-extension/43414)

<div class="topic-metadata">

**Author:** [@CodingGrizzlyBear](https://forum.makecode.com/u/CodingGrizzlyBear)\
**Replies:** 2\
**Last updated:** [April 21, 2026, 5:49pm UTC](https://forum.makecode.com/t/improved-improved-achievements-extension/43414 "2026-04-21T17:49:16Z")

</div>

Better Better Achievements A improve of @meeeeeeeep1 's improve of @UnsignedArduino :slight\_smile: I just made this so there can be a bette-better-achievements extesnion Demo!

---

## [Brohann's 3D devlog](https://forum.makecode.com/t/brohanns-3d-devlog/20917)

<div class="topic-metadata">

**Author:** [@Brohann](https://forum.makecode.com/u/Brohann)\
**Replies:** 171\
**Last updated:** [February 20, 2026, 6:43pm UTC](https://forum.makecode.com/t/brohanns-3d-devlog/20917 "2026-02-20T18:43:31Z")

</div>

A while ago ChatGPT and I made a basic wireframe 3D engine. By adding @AqeeAqee 's triangle filler now you can fill in sides (without sorting :frowning: ) So, here I’m just going to play around and make some 3D games an…

---

## [Pixel Smash Hardware Demake](https://forum.makecode.com/t/pixel-smash-hardware-demake/41894)

<div class="topic-metadata">

**Author:** [@Hamuza11](https://forum.makecode.com/u/Hamuza11)\
**Replies:** 8\
**Last updated:** [February 9, 2026, 5:35pm UTC](https://forum.makecode.com/t/pixel-smash-hardware-demake/41894 "2026-02-09T17:35:34Z")

</div>

I’m making a demake of Pixel Smash for hardware. If anyone wants to contribute art or code, please let me know! poll

---

## [I tired doing a JavaScript game](https://forum.makecode.com/t/i-tired-doing-a-javascript-game/41633)

<div class="topic-metadata">

**Author:** [@Cybercube](https://forum.makecode.com/u/Cybercube)\
**Replies:** 12\
**Last updated:** [January 28, 2026, 6:52pm UTC](https://forum.makecode.com/t/i-tired-doing-a-javascript-game/41633 "2026-01-28T18:52:02Z")

</div>

i tried to make a collect game where you had to get 100 fruits and if 1 fall, then game over. it took me about 2 hours so here you go!

---

## [My Java Script learning journey](https://forum.makecode.com/t/my-java-script-learning-journey/40640)

<div class="topic-metadata">

**Author:** [@Ima.notarobot](https://forum.makecode.com/u/Ima.notarobot)\
**Replies:** 34\
**Last updated:** [December 5, 2025, 3:08am UTC](https://forum.makecode.com/t/my-java-script-learning-journey/40640 "2025-12-05T03:08:01Z")

</div>

Hey. I decided it was time for me to learn Java script, so this is where I will post some related things. I might as for occasional help, and just post about something I learned today. Another reason I am making a topic…

---

## [System error (Javascript)](https://forum.makecode.com/t/system-error-javascript/40771)

<div class="topic-metadata">

**Author:** [@BiiTheBee](https://forum.makecode.com/u/BiiTheBee)\
**Replies:** 4\
**Last updated:** [December 4, 2025, 10:18pm UTC](https://forum.makecode.com/t/system-error-javascript/40771 "2025-12-04T22:18:13Z")

</div>

I keep getting this error saying: “Cannot read properties (reading "\_width”) I don’t know what’s causing it, I checked with Gemini (our school doesn’t allow any other) and he doesn’t help. Code: https://arcade.makecod…

---

## [JavaScript Game Jam!](https://forum.makecode.com/t/javascript-game-jam/37064)

<div class="topic-metadata">

**Author:** [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Replies:** 25\
**Last updated:** [July 28, 2025, 9:23pm UTC](https://forum.makecode.com/t/javascript-game-jam/37064 "2025-07-28T21:23:27Z")

</div>

JavaScript Game jam! I’ve wanted to host this for a while now, and I think with school almost over it’s a good time! The theme will be announced on this Saturday, June 7th and it will last 30 days. The winners will be…

---

## [JavaScript game jam dev log!](https://forum.makecode.com/t/javascript-game-jam-dev-log/37177)

<div class="topic-metadata">

**Author:** [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Replies:** 7\
**Last updated:** [June 12, 2025, 9:21pm UTC](https://forum.makecode.com/t/javascript-game-jam-dev-log/37177 "2025-06-12T21:21:42Z")

</div>

Hello! This is where I’ll post my dev log for my JavaScript Game Jam game! If you have any questions about me, this dev log, javaScript, or really whatever, feel free to ask them here. This version will update as I code…

---

## [Why JavaScript in MakeCode don't accept var?](https://forum.makecode.com/t/why-javascript-in-makecode-dont-accept-var/36747)

<div class="topic-metadata">

**Author:** [@BlueMoon2607](https://forum.makecode.com/u/BlueMoon2607)\
**Replies:** 1\
**Last updated:** [May 17, 2025, 9:45pm UTC](https://forum.makecode.com/t/why-javascript-in-makecode-dont-accept-var/36747 "2025-05-17T21:45:59Z")

</div>

const and let are allowed as declaring variables, except for var, in modified JavaScript. var is used to declare a variable, but you can redeclare it with this. You can use var with something like: var jello = 3 var jel…

---

## [Any tips on how to learn JavaScript or Python? (MakeCode Edition)](https://forum.makecode.com/t/any-tips-on-how-to-learn-javascript-or-python-makecode-edition/34094)

<div class="topic-metadata">

**Author:** [@SanicSpeedy21](https://forum.makecode.com/u/SanicSpeedy21)\
**Replies:** 14\
**Last updated:** [February 28, 2025, 1:09pm UTC](https://forum.makecode.com/t/any-tips-on-how-to-learn-javascript-or-python-makecode-edition/34094 "2025-02-28T13:09:20Z")

</div>

So, I am very efficient in using Blocks but since when you have too many Blocks, the editor space kinda… lags. A little too much. The other coding languages do not have this issue, although I am not very familiar with th…

---

## [SOS- Sprite Help](https://forum.makecode.com/t/sos-sprite-help/34111)

<div class="topic-metadata">

**Author:** [@ThekookypunkMeance](https://forum.makecode.com/u/ThekookypunkMeance)\
**Replies:** 7\
**Last updated:** [February 27, 2025, 8:11pm UTC](https://forum.makecode.com/t/sos-sprite-help/34111 "2025-02-27T20:11:47Z")

</div>

Hello peeps, I’m new to makecode and coding in general especially in javascript. I decided to use the github thing that I saw on other forums because I wasn’t a huge fan of the UI for sprites on makecode (used piskel if …

---

## [image as byte array](https://forum.makecode.com/t/image-as-byte-array/31527)

<div class="topic-metadata">

**Author:** [@DiskyNorsk](https://forum.makecode.com/u/DiskyNorsk)\
**Replies:** 1\
**Last updated:** [November 5, 2024, 5:40pm UTC](https://forum.makecode.com/t/image-as-byte-array/31527 "2024-11-05T17:40:17Z")

</div>

Is there any way to convert any regular image into an array, or access an image’s raw data as if it were an array? i’m writing a function to stretch an image by any amount on the x and/or y axis, and on the x axis it wor…

---

## [Error: Generic type 'Array\<T\>' requires 1 type argument(s)](https://forum.makecode.com/t/error-generic-type-array-t-requires-1-type-argument-s/16780)

<div class="topic-metadata">

**Author:** [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Replies:** 5\
**Last updated:** [October 10, 2023, 4:33pm UTC](https://forum.makecode.com/t/error-generic-type-array-t-requires-1-type-argument-s/16780 "2023-10-10T16:33:09Z")

</div>

Hi, I forgot about this one earlier… When switching from JavaScript to blocks, MakeCode generates an error when trying to convert multidimensional arrays to blocks. The multidimensional arrays compile and run fine dire…

---

## [Making a Terraria like game, need help with an error](https://forum.makecode.com/t/making-a-terraria-like-game-need-help-with-an-error/19275)

<div class="topic-metadata">

**Author:** [@Samsano](https://forum.makecode.com/u/Samsano)\
**Replies:** 17\
**Last updated:** [April 28, 2023, 4:50pm UTC](https://forum.makecode.com/t/making-a-terraria-like-game-need-help-with-an-error/19275 "2023-04-28T16:50:35Z")

</div>

The code is borrowed from @yoxd707. I put all the files into one file and now i get this error: can’t read properties of null (reading ‘fields’). I know it is because it tries to read something that doesen’t exist but m…

---

## [JavaScript errors on Perlin Noise code](https://forum.makecode.com/t/javascript-errors-on-perlin-noise-code/19091)

<div class="topic-metadata">

**Author:** [@Samsano](https://forum.makecode.com/u/Samsano)\
**Replies:** 2\
**Last updated:** [April 12, 2023, 10:54pm UTC](https://forum.makecode.com/t/javascript-errors-on-perlin-noise-code/19091 "2023-04-12T22:54:12Z")

</div>

So, i am not that good at JavaScript code. But i couldnt find any perlin noise codes in python so i found one in JavaScript. Though, i needed to fix some errors that come from importing code from the outside world to the…

---

## [Force code to convert as "Javascript blocks"](https://forum.makecode.com/t/force-code-to-convert-as-javascript-blocks/18107)

<div class="topic-metadata">

**Author:** [@JorginLegal](https://forum.makecode.com/u/JorginLegal)\
**Replies:** 1\
**Last updated:** [February 24, 2023, 6:03pm UTC](https://forum.makecode.com/t/force-code-to-convert-as-javascript-blocks/18107 "2023-02-24T18:03:58Z")

</div>

There is this really annoying bug in the block editor that makes it so you have to alter arrays’ assignment from whatever it automatically converted to to any\[\] every time you do anything in blocks. While ideally the bu…

---

## [Using Jacdac to pause / play video on P5JS](https://forum.makecode.com/t/using-jacdac-to-pause-play-video-on-p5js/14856)

<div class="topic-metadata">

**Author:** [@AvatarLouisLi](https://forum.makecode.com/u/AvatarLouisLi)\
**Replies:** 1\
**Last updated:** [August 10, 2022, 5:59pm UTC](https://forum.makecode.com/t/using-jacdac-to-pause-play-video-on-p5js/14856 "2022-08-10T17:59:32Z")

</div>

I’m trying to use Jacdac buttons to pause and play video on P5JS. At first, I used just one button to pause and play the video, here’s the code: let vid; function setup() { noCanvas(); vid = createVideo('mountain.m…

---

## [Unable to create a 2d array](https://forum.makecode.com/t/unable-to-create-a-2d-array/11919)

<div class="topic-metadata">

**Author:** [@jkohlin](https://forum.makecode.com/u/jkohlin)\
**Replies:** 1\
**Last updated:** [January 28, 2022, 10:47pm UTC](https://forum.makecode.com/t/unable-to-create-a-2d-array/11919 "2022-01-28T22:47:19Z")

</div>

I have a class called Pixel and I want to create an array holding arrays of Pixel-objects I tried tons of stuff but I can’t get it to work. I just get the error that Pixel\[\]\[\] is not assignable to type number\[\] This …

---

## [Game of life... ish](https://forum.makecode.com/t/game-of-life-ish/1884)

<div class="topic-metadata">

**Author:** [@jacob\_c](https://forum.makecode.com/u/jacob_c)\
**Replies:** 10\
**Last updated:** [January 7, 2021, 4:15pm UTC](https://forum.makecode.com/t/game-of-life-ish/1884 "2021-01-07T16:15:43Z")

</div>

I know, I know… it’s been done several times already. … but here’s my take on a Game of Life simulation in makecode arcade: Controls: D-pad: move cursor A: toggle cell (hold while pressing directions to keep drawing…
