Thank you Richard for the prompt reply. I have tried both options and they work fine for function type of questions.
I wanted the student to write a full script not a function, and in this script use a hidden function (that might contain lines of code that the student haven't learned yet for example).
It seems that when I try to do this I get the message: "Parse error: expected line starting with "function". Is this valid code?"
I wanted the student to write a full script not a function, and in this script use a hidden function (that might contain lines of code that the student haven't learned yet for example).
It seems that when I try to do this I get the message: "Parse error: expected line starting with "function". Is this valid code?"