Can JUnit be used for JavaScript?

Can JUnit be used for JavaScript?

Since the JavaScript tests are also JUnit tests, they would be working along with already present JUnit tools such as Eclipse. They also play a part of your build using Maven/ Ant. The Eclipse UI is there to show every test function as well as the most needed error trace.

Read more about JavaScript tests with JUnit.