Hello Helpful Programming Colleagues,
If you're happy to have simple write-a-function questions, where the input data is passed in through the parameters and the function either returns a value or prints an answer with console.log, the out-of-the-box nodejs question type works fine.I attach an example (nodejs_add2.xml).
If you want to be able to read input from the keyboard (which in CodeRunner tests is entered through the Input field of each test case) , see this thread.
As usual in CodeRunner the first problem is to define exactly what you want the student to do and how you're going to grade their submission. Pretty much anything is possible but sometimes the effort in implementing the ideal question just isn't worth the effort and you have to compromise.
Thank you Richard. If I have further questions after I play in the sandbox, I will post them here. I will first try the out-of-the-box nodejs question type and then input from the keyboard.