How to run JavaScript in the terminal?

How to run JavaScript in the terminal?