vendredi 6 mai 2016

How to handle user input code?

Sorry for my English. I have a task.

On my site, there is a textarea (implemented by CodeMirror). User must enter the JavaScript code here. Next, the code must be checked for a particular sample. And in the end, depending on the response, the user is informed his answer true or not. I would like to know by what tools can I implement the code check and the subsequent response. Thank you.

P.S. Are tools like Mocha or Chai suitable for this?

Aucun commentaire:

Enregistrer un commentaire