# Java script code testing on the fly

**URL:** <https://discourse.nodered.org/t/java-script-code-testing-on-the-fly/23114>\
**Category:** General\
**Created:** [14 March 2020 19:08 UTC](https://discourse.nodered.org/t/java-script-code-testing-on-the-fly/23114 "2020-03-14T19:08:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fil](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@fil](https://discourse.nodered.org/u/fil)\
**Post date:** [14 March 2020 19:08 UTC](https://discourse.nodered.org/t/java-script-code-testing-on-the-fly/23114/1 "2020-03-14T19:08:01Z")

</div>

Have i overlooked an on the fly code checking feature to execute java statements and test results prior to committing to a node and flow deploy.  
What flavour of java is used within node red is there a shell interpreter and if so how do i invoke it?  
thanks in advance.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 March 2020 19:25 UTC](https://discourse.nodered.org/t/java-script-code-testing-on-the-fly/23114/2 "2020-03-14T19:25:56Z")

</div>

> [@fil](#):
>
> What flavour of java is used within node red

None. Note-red uses javascript and other than in a functrion node, there is no code checking (in the function node you will see some red X's if is finds something wrong with your `syntax`)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [14 March 2020 19:47 UTC](https://discourse.nodered.org/t/java-script-code-testing-on-the-fly/23114/3 "2020-03-14T19:47:06Z")

</div>

To add to what @zenofmud says, it's JavaScript but in effect there is a kinda 'on the fly' interpreter so to speak...  
Open a terminal/CMD window and type `node` wahlah

Ok so it's not the node red environment but it is JS.

Also, the flavour of us depends on certain factors like the nodejs version installed but it's likely ES6 and potentially some ES7 (someone correct me if I'm wrong)

### Edit...

Anyhow, if I need to test something, I just make a quick copy of the required node(s) and post results to a debug output. It takes seconds to do.

Oh, a thought 💡 ...  
Check out @BartButenaers terminal sidebar node - a shell inside node-red - might be a fair compromise

---

<div class="post-metadata">

**Author:** ![fil](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@fil](https://discourse.nodered.org/u/fil)\
**Post date:** [14 March 2020 19:48 UTC](https://discourse.nodered.org/t/java-script-code-testing-on-the-fly/23114/4 "2020-03-14T19:48:29Z")

</div>

Thanks @zenofmud I am VERY familiar with the little red crosses that help validate the syntax

I am currently using online tools like the test feature in the w3schools language reference pages and [http://math.chapman.edu/~jipsen/js/](http://math.chapman.edu/~jipsen/js/)

to translate my basic ideas in psuedo-code into an acceptable format and test out my understanding of the functions and operators employed in the snippets i lift from those more gifted.

I guess i shall just continue to do it that way..

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 May 2020 19:48 UTC](https://discourse.nodered.org/t/java-script-code-testing-on-the-fly/23114/5 "2020-05-13T19:48:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
