Close an introduction casually
よろしく is the casual short form of よろしくおねがいします. Use it with friends and classmates, not with a teacher.
JLPTN5
よろしく
Dropping おねがいします makes the phrase shorter and much less formal, so よろしく on its own belongs among people your own age. The job is the same: it ends an introduction, and it also follows a favour you have just asked for. When you are unsure, the full よろしくおねがいします is never wrong.