# Is there a way to convert an array to a string?

**URL:** <https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499>\
**Category:** Help\
**Created:** [October 16, 2026, 4:48pm UTC](https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499 "2026-10-16T16:48:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/35216_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [October 16, 2026, 4:48pm UTC](https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499/1 "2026-10-16T16:48:54Z")

</div>

Need it for a project i’m making but I have a feeling it is impossible.

---

<div class="post-metadata">

**Author:** ![Soleb244](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Soleb244](https://forum.makecode.com/u/Soleb244)\
**Post date:** [October 16, 2026, 5:06pm UTC](https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499/2 "2026-10-16T17:06:56Z")

</div>

Depends on what’s in the array. If it’s an array of strings or numbers, you should be able to do something like this:

 ![1000031850](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/f/cfbc29e9fb07419d1733e65a8c31582810f5d1d6.jpeg)

And with this, you can also put , between the elements.

What do you need it for specifically?

---

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/35216_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [October 17, 2026, 1:21am UTC](https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499/3 "2026-10-17T01:21:11Z")

</div>

> **[RWG](https://arcade.makecode.com/S25448-05309-11360-85963)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

This

---

<div class="post-metadata">

**Author:** ![Soleb244](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Soleb244](https://forum.makecode.com/u/Soleb244)\
**Post date:** [October 17, 2026, 8:35pm UTC](https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499/4 "2026-10-17T20:35:03Z")

</div>

This should work:

> **[RWG](https://arcade.makecode.com/S15541-95779-97715-27856)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

You had something with a variable `word`, but you never gave it a value, so the words were undefined or null (I think). I also replaced the change generating with the %chance block, and added `separately do` from the timers extension, because otherwise, after generating like 50 words, it would crash from stack overflow.

The blocks that positioned the menu where you wanted were putting it off-screen for some reason, so I removed them. Don’t forget to add them to make the menu look the way you want

---

<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:** [October 17, 2026, 8:39pm UTC](https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499/5 "2026-10-17T20:39:13Z")

</div>

In js you can do `myArray.join(", ")`, but its not in blocks. I think @WoofWoof’s [extension](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766) might have it.

---

<div class="post-metadata">

**Author:** ![Sword\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sword_studios/32/35216_2.png) [@Sword\_Studios](https://forum.makecode.com/u/Sword_Studios)\
**Post date:** [October 18, 2026, 12:18am UTC](https://forum.makecode.com/t/is-there-a-way-to-convert-an-array-to-a-string/46499/6 "2026-10-18T00:18:19Z")

</div>

Thank you! From now on I will ise this to generate the names of my game charactes

/hj
