Like in any other language node script.js -param1 -param2 etc.
But if you want to pass data from client to server, you do that with Ajax or RESTful service.
I figured out the same too. But is there any other–a more straightforward way to do this?
Thanks