# JavaScript block?

**URL:** https://forum.makecode.com/t/javascript-block/3983
**Category:** PXT
**Created:** [October 20, 2020, 12:58pm UTC](https://forum.makecode.com/t/javascript-block/3983 "2020-10-20T12:58:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [October 20, 2020, 12:58pm UTC](https://forum.makecode.com/t/javascript-block/3983/1 "2020-10-20T12:58:27Z")

</div>

It would be great if the gray blocks had like a text box in it so we could edit it without going to JavaScript mode.

So instead of this:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/59035b8e05f39f3bdef367d7a1f79cba86c89ec0.png)

It would look more like this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/6ba459c3533e6a486932953db279c191e00d2d11.png)  
And you can click inside the box to type in it, and a size grip would probably be mandatory so you could fit more text inside.

I would like to think that this would be useful, in like maybe a teaching setting so the teacher could teach a little JS without dumping the students in a full-on text language. Or it could be useful when you want to input just a tiny bit of JS commands without wanting to switch to text mode and back because the larger the program, the more time it takes to load the blocks when you go back.

Just a thought.

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 20, 2020, 4:21pm UTC](https://forum.makecode.com/t/javascript-block/3983/2 "2020-10-20T16:21:09Z")

</div>

well, it would not be much like a “JavaScript” block if you can edit it in blocks! but your idea is awsome!

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [October 20, 2020, 5:54pm UTC](https://forum.makecode.com/t/javascript-block/3983/3 "2020-10-20T17:54:10Z")

</div>

That was the original design, actually! We decided to make them readonly to make it harder to break your program. Feel free to open an issue on [https://github.com/microsoft/pxt-arcade/issues](https://github.com/microsoft/pxt-arcade/issues) though!

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [October 20, 2020, 6:49pm UTC](https://forum.makecode.com/t/javascript-block/3983/4 "2020-10-20T18:49:43Z")

</div>

Just filled it!

> <https://github.com/microsoft/pxt-arcade/issues/2516>
>
> It would be great if the gray blocks had like a text box in it so we could edit it without...
