Setting a variable value to the return value from javascript script

I am trying to set a variable with the value of the return value from a javascript command from my webview but I can't figure out a way to do that

Use the webViewString

alright thanks!