The dog barked at the stranger and scared him away.
Meaning: This means the dog made a loud sound that made the stranger feel afraid and run away.
Choice of Words: Barked means to make a loud, sharp sound like a dog. Scared means to make someone feel fear or alarm. When you put them together, "The dog barked at the stranger and scared him away" means the dog made a loud sound and caused the stranger to feel fear, making him leave.
Alternative Expressions
Related Expressions