use a global variable in nodejs code example Example: node.js save global variable global.number = 5;