I'm writing a function node that needs to use the node context but on https://nodered.org/docs/creating-nodes/context
it shows
// Access the node's context object
var context = this.context();
var count = context.get('count') || 0;
count += 1;
context.set('count',count);
//added by me to return the count
msg.payload = context.get('count');
return msg
But unless I comment out the 1st line I get an error when I use this example
#Confused