So I'm trying to write an app in javascript and I'm trying to lear OOP javascript. So I created like a simple "class" and in the prototype I'm setting an array to be empty. When I create an object it passes two values to this array, but when I create another object it retains the values from the previous object I created..
I have a jsfiddle showing my problem..
Please let me know why is that happening..
I thought when I created a new object like:
var data = new the_namespace.Test();
it'll be clean without any data..
(This could be something very simple, but again I'm still kind of new to javascript..) Thanks