Ustaw domyślną wartość parametru
function Person(a, b={})
{
/*code*/
}
/*now, if you leave b blank, b will be {} rather than undefined*/
Javasper
function Person(a, b={})
{
/*code*/
}
/*now, if you leave b blank, b will be {} rather than undefined*/