I created a function in Javascript but something should be wrong cause i haven't the awaiting result. The idea is to test several variable. In case they are null i would replace with a blanck space. Here is my code :
function chkNull(myObject) {
if (myObject == null){
myObject = " ";
}
}
And below i test with this :
var dOb = null;
chkNull(dOb);
I don't know what is wrong. If i test with if dOb == null below the var declaration, it is working.