function.
For example: Before I became a teacher I worked
as a waiter.Like has the meaning 'similar to' and is used when comparing things.
For example: I’ve been working like a dog.