Theorical question
Let's say I hava a variable "test", which is defined as observable:
var test = ko.observable("start");
Some code after, I call some times a function which does:
test = ko.observable("pass n");
The former observable is destroyed each time a new one is associated to test, or it leaks memory? Note: i understand that the second code should do
test("pass n");
I am just curious.
And what about redefining test with var, like in first row?