Javascript - Modules - Message Mixer project / Help required

Please help me about this project , I am get stuck when I give command line node super-encoder.js encode in terminal then output come undefined I don’t know why and where i go wrong

https://www.codecademy.com/courses/learn-intermediate-javascript/projects/message-mixer-node