A quick Javascript question that I cannot find a clear short answer to.
I am creating an application that is ahead of everything that I did before, and includes several instances that are created. These objects are then passed to the processing class, which checks the user input, draws on the canvas and updates the objects that it was transferred.
I am wondering how JavaScript handles passing objects in functions? Am I passing an instance of an object or passing a reference to an object?
So, if my controller class changes one of the variables of the object, does it change everywhere or only in the object that this controller sees?
Sorry for such a simple, perhaps easily verifiable question, but I'm not even sure if I am doing the class right at this point due to a heap of errors.
source share