How can I integrate JavaScript code with Selenium WebDriver in Java?

How can I integrate JavaScript code with Selenium WebDriver in Java?