function foo(a)
{
	a = typeof a !== 'undefined' ? a : 1;

	//code!
}

+ Recent posts