Java String to JS
<p>so I have a Java Applet and I want to pass a string within the Java Applet to Javascript, how do you do this? Is it even possible? I tried searching google but it only showed examples of passing a  JS string to Java, not Java to JS, the String is in a method </p>

<pre><code>public String calc(String ans2)
</code></pre>

<p>Please help me as I need to pass the String to Javascript so I can edit it further using html codes, Thanks</p>
