How to prevent spam on wordpress

Wordpress is a popular blogging platform that gives spammers a good chance to do spamming. When I start my blogging career then I make a blog on wordpress. When traffic of my blog increases then comments starts posting. I was very happy to see that users are posting comments. But later on I know that most of the comments are spam comments. These spammers just use a script [...]