15
rated 0 times
[
18]
[
3]
/ answers: 1 / hits: 136396
/ 12 Years ago, thu, april 19, 2012, 12:00:00
Can we pass a reference of a variable that is immutable as argument in a function?
Example:
var x = 0;
function a(x)
{
x++;
}
a(x);
alert(x); //Here I want to have 1 instead of 0
More From » javascript