The experience in Clash of Clans It is a light blue number that appears in the upper left part of your screen and its meaning will interest you a lot...
role of experience in Clash of Clans?
This value simply indicates the proportion of effort it takes to move up to the next level of the game. Thus, completing an achievement, earning stars, unlocking a building, and any activity you do in the game will give you experience points.
It is necessary to accumulate experience to level up, since the level determines many issues such as being able to join a clan and unlock the castle, matchmaking when it comes to clan wars, because although the town hall has more weight, most of the people at the same level of town hall coincide in level and experience, but not in talent and skills because some villages are worse than others even if they have the same level.