Could someone please tell me whether I can use Java Language to develop an automatic unit testing tool for Javascript functions or whether I should go for Javascript itself?
And may I please know all difficulties I might face if I would be using Java instead of Javascript itself to develop the testing tool.

Many many thanks