# \[Feature Request\]Allow one-liner JavaScript as well as JSONata

**URL:** <https://discourse.nodered.org/t/feature-request-allow-one-liner-javascript-as-well-as-jsonata/82825>\
**Category:** Feature Requests\
**Created:** [13 November 2023 11:47 UTC](https://discourse.nodered.org/t/feature-request-allow-one-liner-javascript-as-well-as-jsonata/82825 "2023-11-13T11:47:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [13 November 2023 12:13 UTC](https://discourse.nodered.org/t/feature-request-allow-one-liner-javascript-as-well-as-jsonata/82825/5 "2023-11-13T12:13:21Z")

</div>

Not sure on this one, maybe certain Javascript functions like reduce, map and filter.

Did see this has been requested before.

> [@Change node enhancement idea: Add JavaScript function as a change option](https://discourse.nodered.org/t/change-node-enhancement-idea-add-javascript-function-as-a-change-option/67796):
>
> Fresh back from holiday and looking at the change node something dropped into place in my mind about a slight frustration with it. We now have lots of nice options for the change node but I think that an obvious one may be missing. Why can't we have a simple JavaScript Function option that opens a JavaScript editor? The idea being to end the function with return xxxxx that would be the output for the change. Of course, we would also need some variables being made available such as m…

---

_[View the full topic](https://discourse.nodered.org/t/feature-request-allow-one-liner-javascript-as-well-as-jsonata/82825)._
