Hi there.
I want to take the second root of some variable in the node-red function node.
So I imported "Math" in the setting-tab.
but before I even could sart the srcipt this was my output-error:
This is my code:
const input = msg.payload;
msg.payload = Math.sqrt(input);
return msg;
And this is what I've done in the settings:
What to do now?
Thanks for help.