I have JavaScript method as below,
function showMsg(id) {
  id = id! = null && id != undefined ? id : '';
  //doing some task
}
this showMsg(id) is getting called from different event with id having some value but onLoad event its not required any parameter so I am calling this method as below on Onload event
function onLoading(){
    showMsg(null);
}
will it cause any issue? Currently it's behaving right. But still I want to know about the issue I might face while calling the method with null as parameter.
Any Suggestion help must be appreciated.
 
     
     
    