Question: who played barney on how i met your mother
Answer: Neil Patrick Harris ( born June 15 , 1973 ) is an American actor , comedian , magician , and singer , known primarily for his comedy roles on television and his dramatic and musical stage roles .