In case anyone else encountered this problem. You have to edit your function and check the "has return value" box. Then your return will work. After this you have to use "Call Function" again and now you have a new field for saving results.
How to save the result of a JavaScript to a variable
-
I have a js file that crawls Twitter data like this, but I want to save the result to a variable after it finishes running. Is there any way to do that? Thank you for your response. Tweet_Scrapper9.js
