function q (arr = []){ console.log(arr); if ( arr && arr['q'] ) { alert(arr['q']); } }
q( a['q'] = '2' );