how to turn a variable into a string javascript code example
Example 1: jquery cast to string
value.toString()
String(value)
value + ""
Example 2: js variable to string
`String text ${expression}`
Example 3: How to convert Javascript return value to String in Android
generate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
webView.loadUrl("javascript:alert(fing())");
}
});