Viewing entries tagged with 'closures'

pro tip 2 : JS tips

Posted by DusX on 7 May 2015 | Comments

Tags: , , , ,

js closure izzyactors

What this blog post shows you is how to create a Initialization within a Javascript actor in Isadora. By re-defining the Main function within the Main function. I also include a nice little method of adding simple debugging within your JS code inside Isadora.

** Although this method offers a clean way of defining variables outside the main() function. It is often easiest to define variables in the outer most scope to treat them as Global. EG: "myGlobal = 6;" as the very first line of code (outside any functions) would set a global called myGlobal equal to 6.

comments | Read the full post