..:: Source code - 22var_undefined.js ::..

/**
 * undefined value
 */

var name; //not yet defined variable

var type=typeof name;

//browser - string:
//nodeJS - undefined: undefined
console.log(type +': '+ name);
 

..:: NodeJS Console - 22var_undefined.js ::..

$ node 22var_undefined.js
undefined: undefined
$ps -aux | grep node (list all node processes)
sasa        1194  0.5  0.4 1303236 79704 ?       Ssl  Oct24 276:38 node /home/sasa/.pm2/modules/pm2-logrotate/node_modules/pm2-logr
sasa        1200  0.9  0.8 11722864 138324 ?     Ssl  Oct24 487:07 node /home/sasa/dex8/dex8-api/starter.js
sasa        1207  0.4  0.4 1305676 74340 ?       Ssl  Oct24 228:18 node /home/sasa/regoch/regoch-www/server
sasa        1208  0.3  0.4 1304912 73448 ?       Ssl  Oct24 198:23 node /home/sasa/dex8/dex8-panel/server/index.js
sasa        1224  0.8  0.6 11824932 104272 ?     Ssl  Oct24 477:43 node /home/sasa/dex8/dex8-www/server/index.js
sasa        1236  0.5  0.5 11811084 98004 ?      Ssl  Oct24 303:53 node /home/sasa/mikosoft_hr/www-mikosoft-hr/server/index.js
sasa        1255  0.7  0.5 1330860 84376 ?       Ssl  Oct24 407:37 node /home/sasa/mikosoft-info/api-mikosoft-info/starter.js
sasa        1257  0.3  0.4 1301028 70172 ?       Ssl  Oct24 201:39 node /home/sasa/mikosoft-info/www-mikosoft-info/server/index.js
sasa        1289  0.3  0.4 1297724 67576 ?       Ssl  Oct24 198:51 node /home/sasa/dex8/dex8-kiosk/server/index.js
sasa        1363  3.1  2.8 12172404 468280 ?     Ssl  Oct24 1701:30 node /home/sasa/voovuu/voovuu-pub/server/index.js
sasa        1449  0.3  0.3 1166824 65144 ?       Ssl  Oct24 208:24 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1528  1.7  2.7 33120060 444128 ?     Ssl  Oct24 935:35 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1529  0.3  0.3 1100644 64852 ?       Ssl  Oct24 208:12 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1606  0.3  0.3 1100388 63908 ?       Ssl  Oct24 208:15 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1607  0.3  0.3 1100644 64164 ?       Ssl  Oct24 207:39 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1705  0.3  0.4 1101160 65556 ?       Ssl  Oct24 207:37 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1706  0.3  0.3 1101156 64548 ?       Ssl  Oct24 207:29 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1805  0.3  0.3 1167200 65268 ?       Ssl  Oct24 207:44 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1807  0.3  0.3 1100128 63660 ?       Ssl  Oct24 203:32 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1885  0.3  0.4 1102696 66580 ?       Ssl  Oct24 204:52 node /home/sasa/dex8/dex8-worker/starter.js
sasa        1886  1.6  0.9 11859280 162128 ?     Ssl  Oct24 897:03 node /home/sasa/mikosoft-info/crypto-mikosoft-info/server/index.
sasa     2628167  0.8  0.7 1170996 127900 ?      Ssl  Nov04 309:36 node /home/sasa/voovuu/voovuu-api/starter.js
sasa     3168557  0.6  0.6 11815116 98928 ?      Ssl  Nov06 220:17 node /home/sasa/mikosoft-info/dodo-mikosoft-info/server/index.js
sasa     3169051  0.4  0.5 11798408 83220 ?      Ssl  Nov06 144:03 node /home/sasa/@mikosoft/dodo-examples/server/index.js
www-data 4004846  0.0  0.0   2608   596 ?        S    13:53   0:00 sh -c ps -aux | grep node
www-data 4004848  0.0  0.0   3304   648 ?        S    13:53   0:00 grep node