What does ‘Ace’ mean?

‘Ace’ – a British slang term that means something that is brilliant or excellent. Can also mean to pass something with flying colors.

For example, ‘Jenny is ace at the lab experiments’, or, for the latter definition, ‘I think I aced that exam’.