Meaning of “trick” - Learner’s Dictionary

trick

noun [ C ] uk us /trɪk/
DECEIVE

B1 something you do to deceive or cheat someone, or to make someone look stupid as a joke:

a trick question
I wasn't really ill - it was just a trick.
My little brother liked to play tricks on me (= do things to deceive me as a joke).
METHOD

B2 an effective way of doing something:

What's the trick to pulling out this sofa bed?
MAGIC

B1 something that is done to entertain people and that seems to be magic:

a card trick

(Definition of “trick noun” from the Cambridge Learner’s Dictionary © Cambridge University Press)