i have a function and a local variable declared inside it, i don't want to declare it as global because some functions are also using its default value
function default()
{
var val="me";
//others.....
}
is there a way aside from this using prototyping
function default(value)
{
var val=value;
//others.....
}
something like,
default.prototype.val = "you";
re-constracting