Question about terminal and Nodejs

Can someone tell me what’s going wrong here? I’m trying to test if I have node on my computer by making a simple hello.js file and running it in the terminal. T

Last login: Fri Jan 4 10:03:03 on ttys000
HopesDesk:~ hhutman$ cd desktop/
HopesDesk:desktop hhutman$ ls
Fall 2018 Scrum untitled folder
Joan@linkedin.PNG banjo-uke words
NewFM hello.js projects
HopesDesk:desktop hhutman$ node hello.js
(function (exports, require, module, __filename, __dirname) { let a = 5;

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:136:18)
at node.js:963:3
HopesDesk:desktop hhutman$

I fixed this by updating the Node.js on my computer to the current version