A node can store data within its context object. This context object is reset whenever the node is redeployed and when Node-RED is restarted.
The flow-level context is shared by all nodes on a given tab.
The global context is shared by, and accessible to all nodes. For example to
make the variable
foo available globally:
In the Function node, the
global context objects are made available
as top-level objects. See this section
for more information.