As we know parameters of functions are passed by value in languages like TIScript and JavaScript. Inside the function we can modify paramaters and their new values will not be seen outside the function. Let’s say we need to implement function expand(rect, dx, dy) : rect that should increase dimensions of the rectangle. If the…
Multi-return and multi-assignment in TIScript.
Posted on