Java version - object programming

What version is used in NODE-RED, I wrote the object code in the function node and it gives me a bunch of errors... I don't see any errors anywhere...

@hacesoft

If I am not mistaken - you are looking at an entirely different prgramming language.

Node RED is JAVASCRIPT not JAVA
They are 2 entirely different languages.