Help with JS blocks

why doesnt this work

I think you should move this to Advanced Topics > Advanced Help with Snap! because this is talking about more advanced features.


The green block itself returns a JavaScript function. Between the ( ) is a list of parameters (like the orange parameters of rings) and between the { } is the code of the function. In this case, the code of the function just defines another function (whose name happens to match the parameter of the outer function). The inner function is not run or returned, so there's no way to access it.

Does this worK?

There is

, and a "Web services access" library for more control over requests.

But you have a permissions (and CORS) issue.

no the web app runs with anyone

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.