What was the purpose of salons?

They were markets for buying and selling goods.
They were religious events for reforming the church.
They were places where lawmakers went to write laws.
They were social events for discussing Enlightenment ideas.