I have got the solution to the exercise
I just need to know what the imported{ pictures } array would be declared to.
Hey there,
In Grasshopper, we’re actually mocking the behavior of import/export, and not using modules. This is because of how the app runs puzzle code. The additional code and the user/solution code aren’t actually separate files, but scripts of code that are executed by the browser webview (the code output window).
That said, here’s a great tutorial on how import and export work in browser environments.
Hope this helps! Let me know if you have any questions.
Ben
1 Like