I have a js function as below
function showMsg(id) {
id = id! = null && id != undefined ? id : '';
//doing some task
}
I am calling above function from two different event one with parameter and another without parameter as below,
Call from first event,
showMsg(id);
Call from second event
showMsg();
As i know JS function is variadic in nature so is it right way to call the function? Will it cause any problem in older version of brwoser?
Any help and suggesstion must be appreciated.Thanks