cannot run javascript program in terminal Mac

I have made a JavaScript hello world program in BBEdit, and saved it as app.js. But when I’m trying to run the file in Terminal, I keep getting the error (syntax error near unexpected token `’Hello world”).

The code:

console.log("Hello world")

The odd thing is, when I type console.log("Hello world") into terminal, it works, just not when placing app.js into terminal.

What am I doing wrong?